aboutsummaryrefslogtreecommitdiff
path: root/gcc/c.opt
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2005-06-09 22:21:48 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2005-06-09 22:21:48 +0000
commitb7e20b53f60d973debcd771c882cc44b13db38b1 (patch)
tree5ba1ed694692d32697b04063c0e9fb9c31bfdbd2 /gcc/c.opt
parent92f5e87c2ba9b5f83b8b465a43e43d41a2801265 (diff)
downloadgcc-b7e20b53f60d973debcd771c882cc44b13db38b1.zip
gcc-b7e20b53f60d973debcd771c882cc44b13db38b1.tar.gz
gcc-b7e20b53f60d973debcd771c882cc44b13db38b1.tar.bz2
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
Diffstat (limited to 'gcc/c.opt')
-rw-r--r--gcc/c.opt5
1 files changed, 5 insertions, 0 deletions
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