This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/15414] Build fails with mingw32-w64 GCC-4.8.0


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]