diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2009-05-03 19:14:06 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2009-05-03 19:14:06 +0000 |
commit | 62a67c94b776e5d07acd247e8a68f60f2a824024 (patch) | |
tree | 6bbb72911fd2765093c16f58a6efa88fc9c6ed0a /gcc/c-opts.c | |
parent | 8c7926c4c73c20a4097710c4ffd92d30a839c0fc (diff) | |
download | gcc-62a67c94b776e5d07acd247e8a68f60f2a824024.zip gcc-62a67c94b776e5d07acd247e8a68f60f2a824024.tar.gz gcc-62a67c94b776e5d07acd247e8a68f60f2a824024.tar.bz2 |
flags.h (extra_warnings): Delete.
2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
* flags.h (extra_warnings): Delete.
* toplev.c (process_options): Handle Wuninitialized here.
* opts.c (extra_warnings): Delete.
(set_Wextra): Delete.
(common_handle_option): -Wextra can be handled automatically.
* c-opts.c (c_common_handle_option): Delete obsolete code.
(c_common_post_options): Simplify comment.
* common.opt (W): Add Var.
(Wextra): Add Var.
(Wuninitialized): Initialize to -1.
From-SVN: r147080
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 4dffc78..967be52 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -400,11 +400,7 @@ c_common_handle_option (size_t scode, const char *arg, int value) headers. */ warn_unknown_pragmas = value; - /* We save the value of warn_uninitialized, since if they put - -Wuninitialized on the command line, we need to generate a - warning about not using it without also specifying -O. */ - if (warn_uninitialized != 1) - warn_uninitialized = (value ? 2 : 0); + warn_uninitialized = value; if (!c_dialect_cxx ()) { @@ -1057,11 +1053,8 @@ c_common_post_options (const char **pfilename) if (flag_objc_exceptions && !flag_objc_sjlj_exceptions) flag_exceptions = 1; - /* -Wextra implies -Wtype-limits, -Wclobbered, - -Wempty-body, -Wsign-compare, - -Wmissing-field-initializers, -Wmissing-parameter-type - -Wold-style-declaration, -Woverride-init and -Wignored-qualifiers - but not if explicitly overridden. */ + /* -Wextra implies the following flags + unless explicitly overridden. */ if (warn_type_limits == -1) warn_type_limits = extra_warnings; if (warn_clobbered == -1) |