[Bug c/65040] [5 Regression] gcc-5 -Wformat broken
jirislaby at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Feb 14 11:21:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65040
--- Comment #12 from Jiri Slaby <jirislaby at gmail dot com> ---
(In reply to Marek Polacek from comment #10)
> That's because on your architecture char is signed by default. Try adding
> "unsigned" or using -funsigned-char and the warning should be gone.
Ok, I wanted to make sure, that the format string is really wrong here. It
should be %hhx.
Ouch, that will be pain to fix all those 400 bad format strings in grub2, given
they use Werror & WFormat :D.
More information about the Gcc-bugs
mailing list