From: Gert Doering Date: Thu, 9 Jun 2016 13:00:32 +0000 (+0200) Subject: Change --enable-pedantic to use -std=c99 and not -ansi (C90). X-Git-Tag: v2.4_alpha1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d16072cf17ce8debcf796565841a54f1253a9923;p=thirdparty%2Fopenvpn.git Change --enable-pedantic to use -std=c99 and not -ansi (C90). There's quite a bit of our code that fails compilation with "gcc -pedantic -ansi" and should not be changed - like, LZ4 using "long long" variables which C90 does not have. Be pragmatic. trac #616 Signed-off-by: Gert Doering Acked-by: Gert Doering Message-Id: <1465477232-25826-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/11882 Signed-off-by: Gert Doering --- diff --git a/configure.ac b/configure.ac index d73302345..4f14ebd00 100644 --- a/configure.ac +++ b/configure.ac @@ -1128,7 +1128,7 @@ fi if test "${enable_pedantic}" = "yes"; then enable_strict="yes" CFLAGS="${CFLAGS} -pedantic" - test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi" + test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -std=c99" fi if test "${enable_strict}" = "yes"; then CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"