https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113414
Eric Gallager changed:
What|Removed |Added
CC||egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113414
Xi Ruoyao changed:
What|Removed |Added
CC||xry111 at gcc dot gnu.org
--- Comment #3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113414
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |INVALID
See Also|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113414
--- Comment #1 from Andrew Pinski ---
>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 .