summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-09-20 13:11:36 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-09-20 13:11:36 -0700
commit7868054c034a8f59c8ec8c1ad96b77b5c073041d (patch)
tree405f43121ab7d22a04158df64b2dac9ca04c23bf
parent4f3824743f50808a0079e6057107de53c4a25f22 (diff)
downloadtar-7868054c034a8f59c8ec8c1ad96b77b5c073041d.tar.gz
build: improve build-from-git for older GCCs
configure.ac: Bump GCC version from 4.6 to 11.2 when deciding whether to default to enabling GCC warnings when --enable-gcc-warnings is not specified, as older GCCs can generate too many false alarms. From a suggestion by Christian Schoenebeck.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d09789af..0d31d1ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -158,7 +158,7 @@ AC_ARG_ENABLE([gcc-warnings],
gl_gcc_warnings=$enableval],
[gl_gcc_warnings=no
if test -d "$srcdir"/.git; then
- gl_GCC_VERSION_IFELSE([4], [6], [gl_gcc_warnings=yes])
+ gl_GCC_VERSION_IFELSE([11], [2], [gl_gcc_warnings=yes])
fi]
)