]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update GCC options (hopefully will cover more future versions...)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 1 Aug 2019 15:45:45 +0000 (11:45 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 1 Aug 2019 15:45:45 +0000 (11:45 -0400)
config-scripts/cups-compiler.m4
configure

index 86e8bc488781735e751e7858999645ef14ebca38..63ea1f47010fa67764eb1d7b1fdb186ce59cc0d1 100644 (file)
@@ -175,8 +175,10 @@ if test -n "$GCC"; then
        # 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
 
index 840b42c34be38cf831ea70a07213c2ce3cef597e..eb848725c982f18cbc92cd955f1bc492ae6c7810 100755 (executable)
--- 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