mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
configure: Remove --enable-strict
Both -Wsign-compare (via -Wextra) and -Wuninitalized (via
-Wall) are enabled by default. So this does not do anything
anymore.
While here also remove rest of --enable-strict-options which
was mostly removed in commit
2104ea6243
Change-Id: I53e7b984980cb1e2b3f68e80358b61c9e1045725
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1590
Message-Id: <20260427174757.4075-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36752.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
b2e3e0f0cf
commit
ac62337dd5
2 changed files with 1 additions and 19 deletions
|
|
@ -112,7 +112,7 @@ if (MSVC)
|
|||
add_link_options("$<$<CONFIG:Release>:/CETCOMPAT>")
|
||||
endif()
|
||||
else ()
|
||||
add_compile_options(-Wall -Wuninitialized)
|
||||
add_compile_options(-Wall)
|
||||
check_and_add_compiler_flag(-Wno-stringop-truncation NoStringOpTruncation)
|
||||
check_and_add_compiler_flag(-Wstrict-prototypes StrictPrototypes)
|
||||
check_and_add_compiler_flag(-Wold-style-definition OldStyleDefinition)
|
||||
|
|
|
|||
18
configure.ac
18
configure.ac
|
|
@ -202,13 +202,6 @@ AC_ARG_ENABLE(
|
|||
[enable_pam_dlopen="no"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[strict],
|
||||
[AS_HELP_STRING([--enable-strict], [enable strict compiler warnings (debugging option) @<:@default=no@:>@])],
|
||||
,
|
||||
[enable_strict="no"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[pedantic],
|
||||
[AS_HELP_STRING([--enable-pedantic], [enable pedantic compiler warnings, will not generate a working executable (debugging option) @<:@default=no@:>@])],
|
||||
|
|
@ -223,13 +216,6 @@ AC_ARG_ENABLE(
|
|||
[enable_werror="no"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[strict-options],
|
||||
[AS_HELP_STRING([--enable-strict-options], [enable strict options check between peers (debugging option) @<:@default=no@:>@])],
|
||||
,
|
||||
[enable_strict_options="no"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[selinux],
|
||||
[AS_HELP_STRING([--enable-selinux], [enable SELinux support @<:@default=no@:>@])],
|
||||
|
|
@ -1270,13 +1256,9 @@ if test "${WIN32}" = "yes"; then
|
|||
fi
|
||||
|
||||
if test "${enable_pedantic}" = "yes"; then
|
||||
enable_strict="yes"
|
||||
CFLAGS="${CFLAGS} -pedantic"
|
||||
AC_DEFINE([PEDANTIC], [1], [Enable pedantic mode])
|
||||
fi
|
||||
if test "${enable_strict}" = "yes"; then
|
||||
CFLAGS="${CFLAGS} -Wsign-compare -Wuninitialized"
|
||||
fi
|
||||
if test "${enable_werror}" = "yes"; then
|
||||
CFLAGS="${CFLAGS} -Werror"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue