diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-23 17:45:33 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-23 17:45:33 +0000 |
commit | e1fd9ad27aa9785937f73e1ae1fadebd79802d04 (patch) | |
tree | 4354a6aa46114e214eb3cb70143984a28edef5aa /gcc/c.opt | |
parent | 203898cb2d887b0a820d9bc06b2bf6303313586b (diff) | |
download | gcc-e1fd9ad27aa9785937f73e1ae1fadebd79802d04.tar.gz |
2006-12-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR middle-end/7651
* c.opt (Wmissing-parameter-type): New.
* doc/invoke.texi (Wmissing-parameter-type): Document it.
(Wextra): Enabled by -Wextra.
* c-opts.c (c_common_post_options): Enabled by -Wextra.
* c-decl.c (store_parm_decls_oldstyle): Replace Wextra with
Wmissing-parameter-type.
testsuite/
* gcc.dg/Wmissing-parameter-type.c: New.
* gcc.dg/Wmissing-parameter-type-Wextra.c: New.
* gcc.dg/Wmissing-parameter-type-no.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120173 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c.opt b/gcc/c.opt index 74aef8e0303..e4d45e468ab 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -283,6 +283,10 @@ Wmissing-include-dirs C ObjC C++ ObjC++ Warn about user-specified include directories that do not exist +Wmissing-parameter-type +C ObjC Var(warn_missing_parameter_type) Init(-1) +Warn about function parameters declared without a type specifier in K&R-style functions + Wmissing-prototypes C ObjC Var(warn_missing_prototypes) Warn about global functions without prototypes |