diff options
author | Ian Lance Taylor <iant@google.com> | 2006-12-18 19:56:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2006-12-18 19:56:58 +0000 |
commit | dfdec7a7054a692dbd50543daf5d74a1c1b92472 (patch) | |
tree | 9efc1768f6967aa34cd07b16cba198db0459ecf0 /gcc/c.opt | |
parent | ecc54e6eab98f1275218af1e7ed2c3aaa81ed456 (diff) | |
download | gcc-dfdec7a7054a692dbd50543daf5d74a1c1b92472.zip gcc-dfdec7a7054a692dbd50543daf5d74a1c1b92472.tar.gz gcc-dfdec7a7054a692dbd50543daf5d74a1c1b92472.tar.bz2 |
c.opt (Wmissing-declarations): Add C++ and ObjC++.
./: * c.opt (Wmissing-declarations): Add C++ and ObjC++.
* doc/invoke.texi (Warning Options): -Wmissing-declarations now
works for C++.
cp/:
* decl.c (start_preparsed_function): Add support for
-Wmissing-declarations.
testsuite:
* g++.dg/warn/Wmissing-declarations-1.C: New test.
From-SVN: r120012
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -264,7 +264,7 @@ C ObjC C++ ObjC++ Var(warn_missing_braces) Warn about possibly missing braces around initializers Wmissing-declarations -C ObjC Var(warn_missing_declarations) +C ObjC C++ ObjC++ Var(warn_missing_declarations) Warn about global functions without previous declarations Wmissing-field-initializers |