mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 04:24:32 +00:00
build: move the --enable-more-warning option from m4/ to configure.ac
It will make it easier to policy the default.
(cherry picked from commit 8647be3717
)
This commit is contained in:
parent
9d431169c3
commit
fd47a9a762
|
@ -961,7 +961,7 @@ fi
|
|||
AM_CONDITIONAL(BUILD_NMTUI, test "$build_nmtui" = yes)
|
||||
|
||||
|
||||
NM_COMPILER_WARNINGS
|
||||
NM_COMPILER_WARNINGS([yes])
|
||||
|
||||
CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
|
||||
-fno-strict-aliasing \
|
||||
|
|
|
@ -37,7 +37,7 @@ AC_DEFUN([NM_COMPILER_WARNING], [
|
|||
AC_DEFUN([NM_COMPILER_WARNINGS],
|
||||
[AC_ARG_ENABLE(more-warnings,
|
||||
AS_HELP_STRING([--enable-more-warnings], [Possible values: no/yes/error]),
|
||||
set_more_warnings="$enableval",set_more_warnings=yes)
|
||||
set_more_warnings="$enableval",set_more_warnings=$1)
|
||||
AC_MSG_CHECKING(for more warnings)
|
||||
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
|
|
Loading…
Reference in a new issue