From fd47a9a7622df5b98bdbdf9642dc22d783136584 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 18 Jan 2017 11:08:10 +0100 Subject: [PATCH] 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 8647be3717b551164a540f315b1a3643aa20aba4) --- configure.ac | 2 +- m4/compiler_options.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 3bf9be40a8..ab61ab3175 100644 --- a/configure.ac +++ b/configure.ac @@ -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 \ diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4 index ad03200a51..0023c36b91 100644 --- a/m4/compiler_options.m4 +++ b/m4/compiler_options.m4 @@ -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)