[master] aa2dd82ab Fix libvgz build error on gcc7
Dag Haavi Finstad
daghf at varnish-software.com
Mon Sep 24 13:00:15 UTC 2018
commit aa2dd82abe9441396080f464cf4ad54f9b7ca523
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date: Mon Sep 24 13:27:36 2018 +0200
Fix libvgz build error on gcc7
This adds -Wno-implicit-fallthrough for libvgz to satisfy gcc7.
The -Wno-unknown-warning-option is there to satisfy older gcc/clang that
don't recognize -Wno-implicit-fallthrough.
diff --git a/configure.ac b/configure.ac
index 7cbbe53be..1f9a2f8b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -261,6 +261,11 @@ if test "$ac_cv_have_viz" = no; then
fi
CFLAGS="${save_CFLAGS}"
+if test "x$GCC" = "xyes"; then
+ libvgz_extra_cflags="${libvgz_extra_cflags} -Wno-unknown-warning-option -Wno-implicit-fallthrough"
+ AC_SUBST(libvgz_extra_cflags)
+fi
+
SAN_CFLAGS=
SAN_LDFLAGS=
UBSAN_CFLAGS=
More information about the varnish-commit
mailing list