* [Openvpn-devel] [PATCH] Add (default disabled) --enable-werror option to configure
@ 2014-05-29 10:39 Steffan Karger
2014-06-01 19:13 ` [Openvpn-devel] [PATCH applied] " Gert Doering
0 siblings, 1 reply; 2+ messages in thread
From: Steffan Karger @ 2014-05-29 10:39 UTC (permalink / raw)
To: openvpn-devel
Useful for example during development or automated builds, to make the
build error out if new warnings are introduced.
Signed-off-by: Steffan Karger <steffan@...1856...>
---
configure.ac | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/configure.ac b/configure.ac
index ea35d73..1073312 100644
--- a/configure.ac
+++ b/configure.ac
@@ -244,6 +244,13 @@ AC_ARG_ENABLE(
)
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@:>@])],
,
@@ -1137,6 +1144,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])
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Openvpn-devel] [PATCH applied] Re: Add (default disabled) --enable-werror option to configure
2014-05-29 10:39 [Openvpn-devel] [PATCH] Add (default disabled) --enable-werror option to configure Steffan Karger
@ 2014-06-01 19:13 ` Gert Doering
0 siblings, 0 replies; 2+ messages in thread
From: Gert Doering @ 2014-06-01 19:13 UTC (permalink / raw)
To: Steffan Karger <steffan@; +Cc: openvpn-devel
ACK. Your patch has been applied to the master branch.
commit 51194ffd1983f67b204348686f0ea358f29fe550
Author: Steffan Karger
Date: Thu May 29 12:39:07 2014 +0200
Add (default disabled) --enable-werror option to configure
Signed-off-by: Steffan Karger <steffan@...1856...>
Acked-by: Gert Doering <gert@...1296...>
Message-Id: <1401359947-31144-1-git-send-email-steffan@...1856...>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8747
Signed-off-by: Gert Doering <gert@...1296...>
--
kind regards,
Gert Doering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-01 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-29 10:39 [Openvpn-devel] [PATCH] Add (default disabled) --enable-werror option to configure Steffan Karger
2014-06-01 19:13 ` [Openvpn-devel] [PATCH applied] " Gert Doering
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.