summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2018-10-15 21:28:05 +0200
committerJoel Rosdahl <joel@rosdahl.net>2018-10-15 21:28:32 +0200
commitcbbd015b70dd36c139f3f9fc8e93e1d4337c39a6 (patch)
treedf398f1d0d3bece08a43c5e02fd917276e984de3
parent71607e194e3482014b9d14fe90b1c2cb830974d4 (diff)
downloadccache-cbbd015b70dd36c139f3f9fc8e93e1d4337c39a6.tar.gz
Add -Wno-implicit-fallthrough for zlib build in non-dev mode as well
-rw-r--r--configure.ac22
1 files changed, 11 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 8dfba4bc..eaa66e52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -199,17 +199,6 @@ if test ! -f $srcdir/dev_mode_disabled && test "$RUN_FROM_BUILD_FARM" != yes; th
include_dev_mk='include dev.mk'
version=`(git --git-dir=$srcdir/.git describe --dirty 2>/dev/null || echo vunknown) | sed -e 's/v//' -e 's/-/+/' -e 's/-/_/g'`
echo "extern const char CCACHE_VERSION@<:@@:>@; const char CCACHE_VERSION@<:@@:>@ = \"$version\";" >src/version.c
-
- dnl Check for -Wno-implicit-fallthrough
- AC_MSG_CHECKING([whether C compiler supports -Wno-implicit-fallthrough])
- saved_cflags=$CFLAGS
- CFLAGS=-Wno-implicit-fallthrough
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
- [AC_MSG_RESULT([yes])]
- [no_implicit_fallthrough_warning="-Wno-implicit-fallthrough"],
- [AC_MSG_RESULT([no])]
- )
- CFLAGS=$saved_cflags
else
AC_MSG_NOTICE(developer mode disabled)
fi
@@ -219,6 +208,17 @@ if test ! -f $srcdir/src/version.c -a ! -f src/version.c ; then
echo "extern const char CCACHE_VERSION@<:@@:>@; const char CCACHE_VERSION@<:@@:>@ = \"unknown\";" >src/version.c
fi
+dnl Check for -Wno-implicit-fallthrough
+AC_MSG_CHECKING([whether C compiler supports -Wno-implicit-fallthrough])
+saved_cflags=$CFLAGS
+CFLAGS=-Wno-implicit-fallthrough
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
+ [AC_MSG_RESULT([yes])]
+ [no_implicit_fallthrough_warning="-Wno-implicit-fallthrough"],
+ [AC_MSG_RESULT([no])]
+)
+CFLAGS=$saved_cflags
+
dnl Find test suite files.
test_suites=`cd $srcdir && ls unittest/test_*.c | egrep -v 'BASE|BACKUP|LOCAL|REMOTE' | xargs echo`