diff options
author | Bruce Korb <bkorb@gnu.org> | 2007-04-07 17:55:07 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2007-04-07 17:55:07 +0000 |
commit | ca178f85a63290092282309bc58d624379f749b9 (patch) | |
tree | 19dc2cc7322d36f6899efcd2e24c938b87f989ee /gcc/c-format.c | |
parent | 594dc04813751aa479a77f866f2bd179fba03730 (diff) | |
download | gcc-ca178f85a63290092282309bc58d624379f749b9.zip gcc-ca178f85a63290092282309bc58d624379f749b9.tar.gz gcc-ca178f85a63290092282309bc58d624379f749b9.tar.bz2 |
Separate NUL byte detection from rest of -Wformat warnings
From-SVN: r123640
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r-- | gcc/c-format.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c index 4a0a41e..a64e309 100644 --- a/gcc/c-format.c +++ b/gcc/c-format.c @@ -40,6 +40,7 @@ set_Wformat (int setting) warn_format = setting; warn_format_extra_args = setting; warn_format_zero_length = setting; + warn_format_contains_nul = setting; if (setting != 1) { warn_format_nonliteral = setting; @@ -1482,7 +1483,7 @@ check_format_info_main (format_check_results *res, if (*format_chars == 0) { if (format_chars - orig_format_chars != format_length) - warning (OPT_Wformat, "embedded %<\\0%> in format"); + warning (OPT_Wformat_contains_nul, "embedded %<\\0%> in format"); if (info->first_arg_num != 0 && params != 0 && has_operand_number <= 0) { |