summaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-07 17:55:07 +0000
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-07 17:55:07 +0000
commit0e9b4e746539d6df7de6212cc43f566b48b20a2d (patch)
tree19dc2cc7322d36f6899efcd2e24c938b87f989ee /gcc/c-opts.c
parent918ee5061560bfd815809c17679345559229d7d2 (diff)
downloadgcc-0e9b4e746539d6df7de6212cc43f566b48b20a2d.tar.gz
Separate NUL byte detection from rest of -Wformat warnings
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123640 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index b3878ea1b55..2130c7d7e75 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -1106,6 +1106,8 @@ c_common_post_options (const char **pfilename)
"-Wformat-zero-length ignored without -Wformat");
warning (OPT_Wformat_nonliteral,
"-Wformat-nonliteral ignored without -Wformat");
+ warning (OPT_Wformat_contains_nul,
+ "-Wformat-contains-nul ignored without -Wformat");
warning (OPT_Wformat_security,
"-Wformat-security ignored without -Wformat");
}