From: Gert Doering Date: Thu, 9 Jun 2016 15:00:32 +0200 Message-Id: <1465477232-25826-1-git-send-email-gert@...1296...> Subject: [Openvpn-devel] [PATCH] Change --enable-pedantic to use -std=c99 and not -ansi (C90). 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 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. Signed-off-by: Gert Doering --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d733023..4f14ebd 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" -- 2.7.3