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

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