From 512c2f52889cd362ac641aa32636aaa58299e2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Mon, 18 Jun 2012 21:55:08 +0200 Subject: [PATCH] Fix warning when doing ./autogen.sh + Running autoheader: configure.ac:1393: warning: AC_CACHE_VAL(ac_cv_gcc_no_strict_aliasing, ...): suspicious presence of an AC_SUBST in the second argument, where no actions should be taken --- SheepShaver/src/Unix/configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SheepShaver/src/Unix/configure.ac b/SheepShaver/src/Unix/configure.ac index 284a4ad4..b2bf3f63 100644 --- a/SheepShaver/src/Unix/configure.ac +++ b/SheepShaver/src/Unix/configure.ac @@ -1441,10 +1441,11 @@ if [[ "x$HAVE_GCC30" = "xyes" ]]; then CFLAGS="$CFLAGS -fno-strict-aliasing" AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing], ac_cv_gcc_no_strict_aliasing, [ - AC_TRY_COMPILE([],[], - [ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")], - [ac_cv_gcc_no_strict_aliasing=no]) + AC_TRY_COMPILE([],[],[ac_cv_gcc_no_strict_aliasing=yes],[ac_cv_gcc_no_strict_aliasing=no]) ]) + if [[ "x$ac_cv_gcc_no_strict_aliasing" = "xyes" ]]; then + AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing") + fi CFLAGS="$SAVED_CFLAGS" fi