[Bug c/47901] -Wall should not imply -Wformat-zero-length by default
naesten at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Dec 21 20:01:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47901
Samuel Bronson <naesten at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |naesten at gmail dot com
--- Comment #9 from Samuel Bronson <naesten at gmail dot com> ---
Wouldn't the case where a given custom printf-like function does more than just
print the formatted text be better solved by adding a new __attribute__ to
disable this warning for such a function? (Assuming anyone actually wants
these warnings ever ...)
Then, you could still have warnings for code like 'printf();' that does
nothing, while avoiding them for your 'custom_printf(foo, "");' that does do
something.
More information about the Gcc-bugs
mailing list