https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120148
Andreas Schwab <sch...@linux-m68k.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andreas Schwab <sch...@linux-m68k.org> --- You need to declare printf with __attribute__((format)) to get the warning. By using -fno-builtin the declaration of printf just declares a random function with no other special properties.