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.