]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Change --enable-pedantic to use -std=c99 and not -ansi (C90).
authorGert Doering <gert@greenie.muc.de>
Thu, 9 Jun 2016 13:00:32 +0000 (15:00 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 9 Jun 2016 13:07:34 +0000 (15:07 +0200)
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 <gert@greenie.muc.de>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
configure.ac

index d73302345e2893ac8c87976da92320153238de9b..4f14ebd006a44a18a11bad42e5a2d2687e32269b 100644 (file)
@@ -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"