From: Martin Liska Date: Wed, 19 Jan 2022 10:54:59 +0000 (+0100) Subject: Enable -Werror=format-diag during bootstrap. X-Git-Tag: basepoints/gcc-13~1584 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34ba4275dcf5162efb9b634e4665734766faf4e3;p=thirdparty%2Fgcc.git Enable -Werror=format-diag during bootstrap. gcc/ChangeLog: * configure.ac: Remove -Wno-error=format-diag. * configure: Regenerate. --- diff --git a/gcc/configure b/gcc/configure index fd7227078e4a..3b228c3d9dc4 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7089,7 +7089,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu loose_warn= save_CXXFLAGS="$CXXFLAGS" -for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do +for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do # Do the check with the no- prefix removed since gcc silently # accepts any -Wno-* option on purpose case $real_option in @@ -7147,7 +7147,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu c_loose_warn= save_CFLAGS="$CFLAGS" -for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do +for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do # Do the check with the no- prefix removed since gcc silently # accepts any -Wno-* option on purpose case $real_option in diff --git a/gcc/configure.ac b/gcc/configure.ac index 40cfd38fe56c..472d1c8c341f 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -573,11 +573,11 @@ AS_IF([test $enable_build_format_warnings = no], [wf_opt=-Wno-format],[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])), + [-Wcast-qual $wf_opt])), [loose_warn]) ACX_PROG_CC_WARNING_OPTS( m4_quote(m4_do([-Wstrict-prototypes -Wmissing-prototypes ], - [-Wno-error=format-diag])), [c_loose_warn]) + [])), [c_loose_warn]) ACX_PROG_CXX_WARNING_OPTS( m4_quote(m4_do([-Wmissing-format-attribute ], [-Woverloaded-virtual])), [strict_warn])