From: Alon Bar-Lev Date: Wed, 28 Mar 2012 20:43:15 +0200 Message-Id: <1332960195-25301-1-git-send-email-alon.barlev@...277...> In-Reply-To: References: Subject: [Openvpn-devel] [PATCH] Enable pedantic in windows compilation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Openvpn-devel@lists.sourceforge.net Cc: Alon Bar-Lev Apparently -ansi undef WIN32 macro. Signed-off-by: Alon Bar-Lev --- configure.ac | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index d217343..ef34697 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" -- 1.7.3.4