https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61898
Andi Kleen <andi-gcc at firstfloor dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andi-gcc at firstfloor dot org --- Comment #3 from Andi Kleen <andi-gcc at firstfloor dot org> --- Created attachment 33633 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33633&action=edit Proposed patch This patch implements the warning for the non constant format case. Not done for passing va_list to a real format, but I assume that is rare and in most cases caught by the normal type checking. Let me know if it works.