[6.1] 4997ad66f Fix libvgz build error on gcc7
hermunn
hermunn at varnish-software.com
Wed Oct 24 09:29:16 UTC 2018
commit 4997ad66f24e502a8f9257030552cc82cf2ebfb5
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 cb2d76888..42e863fbd 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