mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-11-23 17:53:49 +08:00
Add (default disabled) --enable-werror option to configure
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@karger.me> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1401359947-31144-1-git-send-email-steffan@karger.me> URL: http://article.gmane.org/gmane.network.openvpn.devel/8747 Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
55af8e9a41
commit
51194ffd19
10
configure.ac
10
configure.ac
@ -243,6 +243,13 @@ AC_ARG_ENABLE(
|
|||||||
[enable_pedantic="no"]
|
[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(
|
AC_ARG_ENABLE(
|
||||||
[strict-options],
|
[strict-options],
|
||||||
[AS_HELP_STRING([--enable-strict-options], [enable strict options check between peers (debugging option) @<:@default=no@:>@])],
|
[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
|
if test "${enable_strict}" = "yes"; then
|
||||||
CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
|
CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
|
||||||
fi
|
fi
|
||||||
|
if test "${enable_werror}" = "yes"; then
|
||||||
|
CFLAGS="${CFLAGS} -Werror"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "${WIN32}" = "yes"; then
|
if test "${WIN32}" = "yes"; then
|
||||||
test -z "${MAN2HTML}" && AC_MSG_ERROR([man2html is required for win32])
|
test -z "${MAN2HTML}" && AC_MSG_ERROR([man2html is required for win32])
|
||||||
|
Loading…
Reference in New Issue
Block a user