From b7e20b53f60d973debcd771c882cc44b13db38b1 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Thu, 9 Jun 2005 22:21:48 +0000 Subject: re PR c/21759 (Implement warning for codes at the intersection of C and C++) PR c/21759 * c.opt (Wc++-compat): New. * doc/invoke.texi (-Wc++-compat): Document. * c-typeck.c (convert_for_assignment): Check for implicit conversion void* -> T*. testsuite/ * gcc.dg/Wcxx-compat-1.c: New. From-SVN: r100806 --- gcc/c.opt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/c.opt') diff --git a/gcc/c.opt b/gcc/c.opt index a055216..ef8705d 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -128,6 +128,11 @@ Wbad-function-cast C ObjC Var(warn_bad_function_cast) Warn about casting functions to incompatible types +Wc++-compat +C Var(warn_cxx_compat) +Warn about C constructs that are not in the common subset of C and C++ + + Wcast-qual C ObjC C++ ObjC++ Var(warn_cast_qual) Warn about casts which discard qualifiers -- cgit v1.1