mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 20:45:32 +00:00
build: don't default to -Werror
It seems like a poor default for various downstream toolchains. We can't anticipate the compiler warnings for future compiler versions and older ones are prone to false positives. Also, older gdbus-codegen is known to generate code that triggers compiler warnings. Let's keep it enabled for maintainer builds and distcheck so that we're sure a tool chain that builds releases without warnings exists.
This commit is contained in:
parent
e486a3803d
commit
84021454eb
|
@ -59,7 +59,7 @@ DISTCLEANFILES = intltool-extract intltool-merge intltool-update
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = NetworkManager.pc
|
pkgconfig_DATA = NetworkManager.pc
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
DISTCHECK_CONFIGURE_FLAGS = --enable-more-warnings=error
|
||||||
|
|
||||||
CLEANFILES = cscope.in.out cscope.out cscope.po.out
|
CLEANFILES = cscope.in.out cscope.out cscope.po.out
|
||||||
|
|
||||||
|
|
|
@ -28,5 +28,5 @@ AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
|
||||||
|
|
||||||
cd $olddir
|
cd $olddir
|
||||||
if test -z "$NOCONFIGURE"; then
|
if test -z "$NOCONFIGURE"; then
|
||||||
exec $srcdir/configure --enable-maintainer-mode "$@"
|
exec $srcdir/configure --enable-maintainer-mode --enable-more-warnings=error "$@"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -22,7 +22,7 @@ AC_DEFUN([NM_COMPILER_WARNING], [
|
||||||
AC_DEFUN([NM_COMPILER_WARNINGS],
|
AC_DEFUN([NM_COMPILER_WARNINGS],
|
||||||
[AC_ARG_ENABLE(more-warnings,
|
[AC_ARG_ENABLE(more-warnings,
|
||||||
AS_HELP_STRING([--enable-more-warnings], [Possible values: no/yes/error]),
|
AS_HELP_STRING([--enable-more-warnings], [Possible values: no/yes/error]),
|
||||||
set_more_warnings="$enableval",set_more_warnings=error)
|
set_more_warnings="$enableval",set_more_warnings=yes)
|
||||||
AC_MSG_CHECKING(for more warnings)
|
AC_MSG_CHECKING(for more warnings)
|
||||||
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
|
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
|
|
Loading…
Reference in a new issue