c-common.c (c_common_post_options): Warn if -Wformat-zero-length is used without...
[gcc.git] / gcc / c-common.c
index 5a87899134540a6a9e4026034a53ebc66ec2d057..d851c27637be60f297f7f1c552b517207f0552bb 100644 (file)
@@ -4311,6 +4311,8 @@ c_common_post_options ()
     warning ("-Wformat-y2k ignored without -Wformat");
   if (warn_format_extra_args && !warn_format)
     warning ("-Wformat-extra-args ignored without -Wformat");
+  if (warn_format_zero_length && !warn_format)
+    warning ("-Wformat-zero-length ignored without -Wformat");
   if (warn_format_nonliteral && !warn_format)
     warning ("-Wformat-nonliteral ignored without -Wformat");
   if (warn_format_security && !warn_format)