This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/65040] [5 Regression] gcc-5 -Wformat broken
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 14 Feb 2015 11:21:03 +0000
- Subject: [Bug c/65040] [5 Regression] gcc-5 -Wformat broken
- Auto-submitted: auto-generated
- References: <bug-65040-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65040
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
-funsigned-char is an option that shouldn't be used without serious
consideration.
That said, I think in that case the warning is intentional, you are indeed
passing a signed value to unsigned format. If you don't care about that, don't
use -Wformat=2 or use -Wno-format-signedness.