From 91ec580beceb3d6c723d2ade85436374992526f7 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 3 Jun 2014 23:23:30 +0200 Subject: Import new openvpn -master version --- main/openvpn/configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'main/openvpn/configure.ac') diff --git a/main/openvpn/configure.ac b/main/openvpn/configure.ac index 70c0c8b5..55c40847 100644 --- a/main/openvpn/configure.ac +++ b/main/openvpn/configure.ac @@ -229,6 +229,13 @@ AC_ARG_ENABLE( [enable_pedantic="no"] ) +AC_ARG_ENABLE( + [werror], + [AS_HELP_STRING([--enable-werror], [promote compiler warnings to errors, will cause builds to fail is the compiler issues warnings (debugging option) @<:@default=no@:>@])], + , + [enable_werror="no"] +) + AC_ARG_ENABLE( [strict-options], [AS_HELP_STRING([--enable-strict-options], [enable strict options check between peers (debugging option) @<:@default=no@:>@])], @@ -1121,6 +1128,9 @@ fi if test "${enable_strict}" = "yes"; then CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function" fi +if test "${enable_werror}" = "yes"; then + CFLAGS="${CFLAGS} -Werror" +fi if test "${WIN32}" = "yes"; then test -z "${MAN2HTML}" && AC_MSG_ERROR([man2html is required for win32]) -- cgit v1.2.3