From: Richard Kettlewell Date: Sat, 1 Dec 2012 11:09:03 +0000 (+0000) Subject: build: fix test for ancient GCC bug X-Git-Tag: branchpoint-5.1~13 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/34a1fb8ccccb8f6de3417d9118b9148fbefa0d7d build: fix test for ancient GCC bug --- diff --git a/configure.ac b/configure.ac index ee96f21..e47aca2 100644 --- a/configure.ac +++ b/configure.ac @@ -729,13 +729,13 @@ if test "x$GCC" = xyes; then if test $GCC = yes; then CC="$CC -Wall -Werror" fi - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ static int x(char *f) { return *f; } int z(const char *g) { return x((char *)g); - }])], + }],[])], [rjk_cv_pr29478=no], [rjk_cv_pr29478=yes] )