From a974ad48cdcc68cc5192c50820880e95ffee9ae5 Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 21 Oct 2013 03:26:29 +0000 Subject: [PATCH] configure.ac: do not compile with -ansi for now There is currently a bug on the MinGW/MinGW-w64 platforms: sourceforge.net/p/mingw/bugs/2024 where compiling with -ansi will not define the off64_t type, but including unistd.h will require it to be defined else a compile error will result. Attempting to define a replacement in config.h also fails; config.h will work for check's code, but the code that libtool produces then fails, meaning unit tests fail to compile. When the MinGW bug is resolved, we can start compiling with -ansi again. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@846 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index beb2a17..ef74450 100644 --- a/configure.ac +++ b/configure.ac @@ -130,7 +130,7 @@ AC_PROG_LIBTOOL # add these options to CFLAGS if the compiler supports them AC_DEFUN([AX_CFLAGS_ADD],[AX_C_CHECK_FLAG($1, , , CFLAGS="$CFLAGS $1")]) -AX_CFLAGS_WARN_ALL_ANSI +#AX_CFLAGS_WARN_ALL_ANSI AX_CFLAGS_ADD([-Wextra]) AX_CFLAGS_ADD([-Wstrict-prototypes]) AX_CFLAGS_ADD([-Wmissing-prototypes]) -- 2.40.0