diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-07 18:27:14 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-07 18:27:14 +0000 |
commit | 77a357e3981ece063dcc38f002d1db5e04aaad14 (patch) | |
tree | 3c564bf33de77ab471b06b630abe131896fc4fb8 /gcc/c-family/c-opts.c | |
parent | 5493f55ecfae6e8c7c37a87ca8457e0132cb393c (diff) | |
download | gcc-77a357e3981ece063dcc38f002d1db5e04aaad14.tar.gz |
gcc/
2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
* doc/invoke.texi (Wformat): Update.
c-family/
2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
* c.opt (Wformat): Make it Alias Wformat=1.
(Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
Wformat-security,Wformat-y2k,Wformat-zero-length): Use
LangEnabledBy.
(Wformat=): RejectNegative. Use LangEnabledBy.
(Wnonnull): Use LangEnabledBy.
* c-opts.c (c_common_handle_option): Do not handle Wformat here.
* c-format.c (set_Wformat): Delete.
(decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
(maybe_read_dollar_number): Likewise.
(avoid_dollar_number): Likewise.
(finish_dollar_format_checking): Likewise.
(check_format_info): Likewise.
(check_format_info_main): Likewise.
(check_format_types): Likewise.
(format_type_warning): Likewise.
* c-common.c (int): Likewise.
(check_function_sentinel): Likewise.
* c-common.h (warn_format,set_Wformat): Do not declare here.
testsuite/
2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
* gcc.dg/warn-nsstring.c: Use -Wformat explicitly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-opts.c')
-rw-r--r-- | gcc/c-family/c-opts.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 6fedd1e7502..eb6b2d9329d 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -358,7 +358,6 @@ c_common_handle_option (size_t scode, const char *arg, int value, case OPT_Wall: /* ??? Don't add new options here. Use LangEnabledBy in c.opt. */ - set_Wformat (value); cpp_opts->warn_trigraphs = value; cpp_opts->warn_comments = value; @@ -385,14 +384,6 @@ c_common_handle_option (size_t scode, const char *arg, int value, cpp_opts->warn_endif_labels = value; break; - case OPT_Wformat: - set_Wformat (value); - break; - - case OPT_Wformat_: - set_Wformat (atoi (arg)); - break; - case OPT_Winvalid_pch: cpp_opts->warn_invalid_pch = value; break; |