Blame SOURCES/gcc8-Wno-format-security.patch

ed1ed2
2017-02-25  Jakub Jelinek  <jakub@redhat.com>
ed1ed2
ed1ed2
	* configure.ac: When adding -Wno-format, also add -Wno-format-security.
ed1ed2
	* configure: Regenerated.
ed1ed2
ed1ed2
--- gcc/configure.ac.jj	2017-02-13 12:20:53.000000000 +0100
ed1ed2
+++ gcc/configure.ac	2017-02-25 12:42:32.859175403 +0100
ed1ed2
@@ -481,7 +481,7 @@ AC_ARG_ENABLE(build-format-warnings,
ed1ed2
   AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]),
ed1ed2
   [],[enable_build_format_warnings=yes])
ed1ed2
 AS_IF([test $enable_build_format_warnings = no],
ed1ed2
-      [wf_opt=-Wno-format],[wf_opt=])
ed1ed2
+      [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=])
ed1ed2
 ACX_PROG_CXX_WARNING_OPTS(
ed1ed2
 	m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ],
ed1ed2
 		       [-Wcast-qual $wf_opt])), [loose_warn])
ed1ed2
--- gcc/configure.jj	2017-02-13 12:20:52.000000000 +0100
ed1ed2
+++ gcc/configure	2017-02-25 12:42:50.041946391 +0100
ed1ed2
@@ -6647,7 +6647,7 @@ else
ed1ed2
 fi
ed1ed2
 
ed1ed2
 if test $enable_build_format_warnings = no; then :
ed1ed2
-  wf_opt=-Wno-format
ed1ed2
+  wf_opt="-Wno-format -Wno-format-security"
ed1ed2
 else
ed1ed2
   wf_opt=
ed1ed2
 fi