diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2005-06-09 22:21:48 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2005-06-09 22:21:48 +0000 |
commit | b7e20b53f60d973debcd771c882cc44b13db38b1 (patch) | |
tree | 5ba1ed694692d32697b04063c0e9fb9c31bfdbd2 /gcc/c.opt | |
parent | 92f5e87c2ba9b5f83b8b465a43e43d41a2801265 (diff) | |
download | gcc-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.opt | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |