From: Alon Bar-Lev Date: Wed, 28 Mar 2012 18:43:15 +0000 (+0200) Subject: Enable pedantic in windows compilation X-Git-Tag: v2.3_alpha2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31444111839f0720d6173a71f66fa3a988bcf9fb;p=thirdparty%2Fopenvpn.git Enable pedantic in windows compilation Apparently -ansi undef WIN32 macro. Signed-off-by: Alon Bar-Lev Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- diff --git a/configure.ac b/configure.ac index d217343bb..ef346978a 100644 --- a/configure.ac +++ b/configure.ac @@ -886,7 +886,8 @@ fi if test "${enable_pedantic}" = "yes"; then enable_strict="yes" - CFLAGS="${CFLAGS} -ansi -pedantic" + CFLAGS="${CFLAGS} -pedantic" + test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi" fi if test "${enable_strict}" = "yes"; then CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"