From 43c0e4a9d5aa5231e7eebfd0db1cef099c0f2ca3 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 1 Aug 2019 11:45:45 -0400 Subject: Update GCC options (hopefully will cover more future versions...) --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 840b42c34..eb848725c 100755 --- a/configure +++ b/configure @@ -6911,8 +6911,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # doesn't trigger... gccversion=`$CC --version | head -1 | awk '{print $NF}'` case "$gccversion" in - 7.* | 8.*) - WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-tautological-compare" + 1.* | 2.* | 3.* | 4.* | 5.* | 6.* | \(clang-*) + ;; + *) + WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-format-overflow -Wno-tautological-compare" ;; esac -- cgit v1.2.1