aboutsummaryrefslogtreecommitdiff
path: root/gcc/c.opt
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2006-12-23 17:45:33 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2006-12-23 17:45:33 +0000
commitcb4af25a807a42bcc9ddb200dc65b51fb74986e3 (patch)
tree4354a6aa46114e214eb3cb70143984a28edef5aa /gcc/c.opt
parentea049a41992eb3d97ab7da175f0a98fbbdf68f35 (diff)
downloadgcc-cb4af25a807a42bcc9ddb200dc65b51fb74986e3.zip
gcc-cb4af25a807a42bcc9ddb200dc65b51fb74986e3.tar.gz
gcc-cb4af25a807a42bcc9ddb200dc65b51fb74986e3.tar.bz2
re PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)
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. From-SVN: r120173
Diffstat (limited to 'gcc/c.opt')
-rw-r--r--gcc/c.opt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c.opt b/gcc/c.opt
index 74aef8e..e4d45e4 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