This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/15414] Build fails with mingw32-w64 GCC-4.8.0
- From: "freddie_chopin at op dot pl" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 29 Apr 2013 17:30:57 +0000
- Subject: [Bug build/15414] Build fails with mingw32-w64 GCC-4.8.0
- Auto-submitted: auto-generated
- References: <bug-15414-4717 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15414
--- Comment #4 from Freddie Chopin <freddie_chopin at op dot pl> 2013-04-29 17:30:57 UTC ---
With GCC 4.8.0 (linux host and target) this command works:
$ gcc -Wall -Werror -Wno-format-nonliteral test.c
This doesn't:
$ gcc -Wall -Werror -Wformat-nonliteral -Wno-format test.c
cc1: error: -Wformat-nonliteral ignored without -Wformat
[-Werror=format-nonliteral]
cc1: all warnings being treated as errors
Interesting fact - this command works too:
$ gcc -Wall -Werror -Wformat-nonliteral -Wno-format-nonliteral test.c
I've tested that it in fact disables checking of non-literal format strings,
but it "looks bad" - like a hack (;
So I think the solution is to change "-Wformat-nonliteral" to
"-Wno-format-nonliteral" instead of adding "-Wno-format". Another possible
option is to add "-Wno-format-nonliteral" instead of "-Wno-format"...
<just saw the new comment>
I was thinking about the same thing - I'll try that in a moment and report
back.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.