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

orion at cora dot nwra.com gcc-bugzilla@gcc.gnu.org
Mon Feb 27 17:20:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677

--- Comment #8 from Orion Poplawski <orion at cora dot nwra.com> ---
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 -DKWIML_LANGUAGE_CXX
-I/builddir/build/BUILD/cmake-3.7.2/build/Utilities
-I/builddir/build/BUILD/cmake-3.7.2/Utilities  -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wno-format 
 -std=gnu11 -o CMakeFiles/kwiml_test.dir/test.c.o   -c
/builddir/build/BUILD/cmake-3.7.2/Utilities/KWIML/test/test.c
cc1: error: -Wformat-security ignored without -Wformat
[-Werror=format-security]
cc1: some warnings being treated as errors

I don't see any extra options myself.


More information about the Gcc-bugs mailing list