summaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-28 21:23:35 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-28 21:23:35 +0000
commita2a58dc4ab39e0b69ec3834a3b8bdc9e018981f7 (patch)
treecf4d27dc41d9d27b7f6b3b19622143ef67c50685 /gcc/c-opts.c
parentdcb02e49fd532541abfc5bf8c415701e1d487218 (diff)
downloadgcc-a2a58dc4ab39e0b69ec3834a3b8bdc9e018981f7.tar.gz
PR middle-end/40500
* c-opts.c (c_common_handle_option): Don't set warn_jump_misses_init for -Wall. * doc/invoke.texi (Warning Options): Update documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152252 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index d9165aa6061..e026fd97dc7 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -397,8 +397,6 @@ c_common_handle_option (size_t scode, const char *arg, int value)
warn_strict_overflow = value;
warn_array_bounds = value;
warn_volatile_register_var = value;
- if (warn_jump_misses_init == -1)
- warn_jump_misses_init = value;
/* Only warn about unknown pragmas that are not in system
headers. */
@@ -450,7 +448,7 @@ c_common_handle_option (size_t scode, const char *arg, int value)
if (warn_enum_compare == -1 && value)
warn_enum_compare = value;
/* Because C++ always warns about a goto which misses an
- initialization, -Wc++-compat turns on -Wgoto-misses-init. */
+ initialization, -Wc++-compat turns on -Wjump-misses-init. */
if (warn_jump_misses_init == -1 && value)
warn_jump_misses_init = value;
cpp_opts->warn_cxx_operator_names = value;