From: Joel Rosdahl Date: Sun, 15 Sep 2019 20:30:34 +0000 (+0200) Subject: Remove obsolete configure check related to snprintf replacements X-Git-Tag: v4.0~786 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36be31b72955f22a25c54d128c58bf10caa27c73;p=thirdparty%2Fccache.git Remove obsolete configure check related to snprintf replacements --- diff --git a/Makefile.in b/Makefile.in index 64f97a371..0d0916bcf 100644 --- a/Makefile.in +++ b/Makefile.in @@ -132,7 +132,6 @@ clean: [ ! -f src/third_party/zstd/Makefile ] || $(MAKE) -C src/third_party/zstd/lib clean [ ! -f src/third_party/libb2/Makefile ] || $(MAKE) -C src/third_party/libb2 clean -src/third_party/snprintf.o: CFLAGS += @no_implicit_fallthrough_warning@ libzstd_options = \ ZSTD_LEGACY_SUPPORT=0 \ diff --git a/configure.ac b/configure.ac index 514fe9a48..7ff840c63 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,6 @@ AC_SUBST(extra_libs) AC_SUBST(extra_sources) AC_SUBST(include_dev_mk) AC_SUBST(more_warnings) -AC_SUBST(no_implicit_fallthrough_warning) m4_include(m4/feature_macros.m4) m4_include(m4/ax_cxx_compile_stdcxx.m4) @@ -265,17 +264,6 @@ if test ! -f $srcdir/src/version.cpp -a ! -f src/version.cpp ; then echo "extern const char CCACHE_VERSION@<:@@:>@; const char CCACHE_VERSION@<:@@:>@ = \"unknown\";" >src/version.cpp 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 - AC_CONFIG_FILES([Makefile]) AC_OUTPUT