diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-01-02 17:33:25 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-01-02 17:33:25 +0000 |
commit | b1ed4cb43c9b43a57b28d35c46062607af6e6a64 (patch) | |
tree | 2b0687af1952de91d3b3f408b09402cfbbfa1bba /gcc/c.opt | |
parent | d887a68299b172a03c4648b16fdfbef9dcf25ce0 (diff) | |
download | gcc-b1ed4cb43c9b43a57b28d35c46062607af6e6a64.zip gcc-b1ed4cb43c9b43a57b28d35c46062607af6e6a64.tar.gz gcc-b1ed4cb43c9b43a57b28d35c46062607af6e6a64.tar.bz2 |
re PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)
2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR middle-end/7651
* c.opt (Wold-style-declaration): New.
* doc/invoke.texi (C-only Warning Options): New.
(Wold-style-declaration): Document it.
(Wextra): Enabled by -Wextra.
* c-opts.c (c_common_post_options): Enabled by -Wextra.
* c-decl.c (declspecs_add_scspec): Replace -Wextra with
-Wold-style-declaration.
testsuite/
* gcc.dg/declspec-3.c: Replace -W with -Wold-style-declaration.
* gcc.dg/declspec-3-Wextra.c: New.
* gcc.dg/declspec-3-no.c: New
From-SVN: r120347
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -319,6 +319,10 @@ Wold-style-cast C++ ObjC++ Var(warn_old_style_cast) Warn if a C-style cast is used in a program +Wold-style-declaration +C ObjC Var(warn_old_style_declaration) Init(-1) +Warn for obsolescent usage in a declaration + Wold-style-definition C ObjC Var(warn_old_style_definition) Warn if an old-style parameter definition is used |