]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
build: improve build-from-git for older GCCs
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Sep 2021 20:11:36 +0000 (13:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Sep 2021 20:11:36 +0000 (13:11 -0700)
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.

configure.ac

index d09789af8c3da65e4ae5847e41829b85a08361af..0d31d1eeaf1ad24514d123a8f8976afffc39a776 100644 (file)
@@ -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]
 )