[Bug c/47901] -Wall should not imply -Wformat-zero-length by default
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Mon Apr 23 19:58:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47901
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-04-23 19:58:15 UTC ---
There are plenty of warnings in -Wall that relate to things that are
unusual but may be OK in some cases, or where -Wall expects a particular
coding style to be used. I think -Wformat-zero-length falls into the
category of pointing out something that might be OK but is likely not to
be intended. So I think it's fine in -Wall - but if a subset of format
checking warnings were enabled by default (as in Ubuntu, for example) then
maybe that default subset would not include this one.
More information about the Gcc-bugs
mailing list