[Bug c/79677] Weird handling of -Werror=

2017-02-27 Thread orion at cora dot nwra.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #12 from Orion Poplawski --- Adding -Wno-format-security does indeed work. Thank you.

[Bug c/79677] Weird handling of -Werror=

2017-02-27 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #11 from Jakub Jelinek --- It is not a GCC bug, the general rule is that the options that enable suboptions don't change those (either way) if that option has been specified explicitly. So, -Wformat -Wformat-security -Wno-format does

[Bug c/79677] Weird handling of -Werror=

2017-02-27 Thread orion at cora dot nwra.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #10 from Orion Poplawski --- I'm not sure how I'm practically supposed to handle this. In this case, for one sub-directory upstream adds -Wno-format to the flags: ./Utilities/KWIML/test/CMakeLists.txt:set(CMAKE_${lang}_FLAGS "${

[Bug c/79677] Weird handling of -Werror=

2017-02-27 Thread orion at cora dot nwra.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #9 from Orion Poplawski --- Ah, just got the -Wno-format

[Bug c/79677] Weird handling of -Werror=

2017-02-27 Thread orion at cora dot nwra.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #8 from Orion Poplawski --- Created attachment 40838 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40838&action=edit /builddir/build/BUILD/cmake-3.7.2/Utilities/KWIML/test/test.c /usr/lib64/ccache/gcc -DKWIML_LANGUAGE_C -DKWI

[Bug c/79677] Weird handling of -Werror=

2017-02-27 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #6 from Jakub Jelinek --- (In reply to Orion Poplawski from comment #5) > With gcc 7.0.1-0.10.fc26 I'm starting to see errors like: > > cc1plus: error: -Wformat-security ignored without -Wformat > [-Werror=format-security] > > If th

[Bug c/79677] Weird handling of -Werror=

2017-02-27 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #7 from Jakub Jelinek --- Or perhaps makefiles filtering away -Wall or using -Wno-all.

[Bug c/79677] Weird handling of -Werror=

2017-02-27 Thread orion at cora dot nwra.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 Orion Poplawski changed: What|Removed |Added CC||orion at cora dot nwra.com --- Comment

[Bug c/79677] Weird handling of -Werror=

2017-02-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/79677] Weird handling of -Werror=

2017-02-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #3 from Jakub Jelinek --- Author: jakub Date: Fri Feb 24 23:15:56 2017 New Revision: 245728 URL: https://gcc.gnu.org/viewcvs?rev=245728&root=gcc&view=rev Log: PR c/79677 * opts.h (handle_generated_option): Add GENERAT

[Bug c/79677] Weird handling of -Werror=

2017-02-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c/79677] Weird handling of -Werror=

2017-02-22 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 --- Comment #1 from joseph at codesourcery dot com --- For the theory of how I think this should behave, see (referring back to a