https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113414
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=90205 Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > >The code should be warned, but it did not. > > > No that is by design. You need to use -Wformat-signedness for that. > > But for the second example, the fix it note is wrong only with > -Wformat-signedness . But that is already PR 90205 .