]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove obsolete configure check related to snprintf replacements
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 15 Sep 2019 20:30:34 +0000 (22:30 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 15 Sep 2019 20:30:34 +0000 (22:30 +0200)
Makefile.in
configure.ac

index 64f97a371450a42fb18ed27d95161953bbe2bbd0..0d0916bcfd491fc9ed9a682e1197dae862ddd5e1 100644 (file)
@@ -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 \
index 514fe9a48919335e1572d57a2c62abda6a5e0507..7ff840c6309c8eec0001d62cf357fcf8d87c8f21 100644 (file)
@@ -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