diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-09 22:07:04 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-09 22:07:04 +0000 |
commit | 410b80b28f70484a470fb2c1f11c15844a01a1c2 (patch) | |
tree | 0a9d25bc0b7688b72c8cbbab26ad6f26015ea08e /gcc/c-opts.c | |
parent | 52823b5f4e1f5c2d1a5056d6eb724e295b1a1a9b (diff) | |
download | gcc-410b80b28f70484a470fb2c1f11c15844a01a1c2.tar.gz |
2007-10-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* c-opts.c (c_common_handle_option): -Wnontemplate-friend,
-Wwrite-strings and -Wmultichar are enabled by default, so Wall
enabling them is redundant. Don't check two times for
c_dialect_cxx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129183 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 80c01a01c1d..16710b6a825 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -400,8 +400,6 @@ c_common_handle_option (size_t scode, const char *arg, int value) warn_parentheses = value; warn_return_type = value; warn_sequence_point = value; /* Was C only. */ - if (c_dialect_cxx ()) - warn_sign_compare = value; warn_switch = value; set_Wstrict_aliasing (value); warn_address = value; @@ -425,17 +423,14 @@ c_common_handle_option (size_t scode, const char *arg, int value) else { /* C++-specific warnings. */ + warn_sign_compare = value; warn_reorder = value; - warn_nontemplate_friend = value; warn_cxx0x_compat = value; - if (value > 0) - warn_write_strings = true; } cpp_opts->warn_trigraphs = value; cpp_opts->warn_comments = value; cpp_opts->warn_num_sign_change = value; - cpp_opts->warn_multichar = value; /* Was C++ only. */ if (warn_pointer_sign == -1) warn_pointer_sign = 1; |