diff options
author | João Figueiredo | 2021-08-04 18:04:42 +0100 |
---|---|---|
committer | João Figueiredo | 2021-08-04 18:04:42 +0100 |
commit | 85d0edb2162f0b54d1b516e81c31027fe1e000f0 (patch) | |
tree | a14101385a6c06693bacfa4a72010dd4ca45130d /gcc11-Wno-format-security.patch | |
parent | da99ad25d82efa444b918be95fdd66c1ee1f08c2 (diff) | |
download | aur-85d0edb2162f0b54d1b516e81c31027fe1e000f0.tar.gz |
Merged with official ABS gcc PKGBUILD
Diffstat (limited to 'gcc11-Wno-format-security.patch')
-rw-r--r-- | gcc11-Wno-format-security.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc11-Wno-format-security.patch b/gcc11-Wno-format-security.patch new file mode 100644 index 000000000000..974ea44d0f85 --- /dev/null +++ b/gcc11-Wno-format-security.patch @@ -0,0 +1,27 @@ +2017-02-25 Jakub Jelinek <jakub@redhat.com> + + * configure.ac: When adding -Wno-format, also add -Wno-format-security. + * configure: Regenerated. + +--- gcc/configure.ac.jj 2017-02-13 12:20:53.000000000 +0100 ++++ gcc/configure.ac 2017-02-25 12:42:32.859175403 +0100 +@@ -480,7 +480,7 @@ AC_ARG_ENABLE(build-format-warnings, + AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]), + [],[enable_build_format_warnings=yes]) + AS_IF([test $enable_build_format_warnings = no], +- [wf_opt=-Wno-format],[wf_opt=]) ++ [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=]) + ACX_PROG_CXX_WARNING_OPTS( + m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ], + [-Wcast-qual -Wno-error=format-diag $wf_opt])), +--- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100 ++++ gcc/configure 2017-02-25 12:42:50.041946391 +0100 +@@ -6647,7 +6647,7 @@ else + fi + + if test $enable_build_format_warnings = no; then : +- wf_opt=-Wno-format ++ wf_opt="-Wno-format -Wno-format-security" + else + wf_opt= + fi |