aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-19 11:54:59 +0100
committerMartin Liska <mliska@suse.cz>2022-01-19 12:16:04 +0100
commit34ba4275dcf5162efb9b634e4665734766faf4e3 (patch)
tree0eefa34eeadcf4a539d4ce69da51f65ea88700a0 /gcc
parentfdf31ae25f66cd486e655d7ebda36826025b9d0e (diff)
downloadgcc-34ba4275dcf5162efb9b634e4665734766faf4e3.zip
gcc-34ba4275dcf5162efb9b634e4665734766faf4e3.tar.gz
gcc-34ba4275dcf5162efb9b634e4665734766faf4e3.tar.bz2
Enable -Werror=format-diag during bootstrap.
gcc/ChangeLog: * configure.ac: Remove -Wno-error=format-diag. * configure: Regenerate.
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/configure4
-rw-r--r--gcc/configure.ac4
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/configure b/gcc/configure
index fd72270..3b228c3 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 40cfd38..472d1c8 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])