Do not turn some compiler warnings into errors by default
We build with --enable-werror during development and in CI. If the code is built with a different compiler that throws additional warnings, it should not stop the build. This patch also effectively removes dependency on autoconf-archive. Related: OS#5289 Related: SYS#5789 Change-Id: I7512a4230a5bbba6c67172c2572c98b9ab20c923
This commit is contained in:
parent
4a0d157859
commit
6d8e37f610
12
configure.ac
12
configure.ac
|
@ -36,11 +36,6 @@ if test "x$PKG_CONFIG_INSTALLED" = "xno"; then
|
||||||
fi
|
fi
|
||||||
PKG_PROG_PKG_CONFIG([0.20])
|
PKG_PROG_PKG_CONFIG([0.20])
|
||||||
|
|
||||||
dnl check for AX_CHECK_COMPILE_FLAG
|
|
||||||
m4_ifdef([AX_CHECK_COMPILE_FLAG], [], [
|
|
||||||
AC_MSG_ERROR([Please install autoconf-archive; re-run 'autoreconf -fi' for it to take effect.])
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl checks for libraries
|
dnl checks for libraries
|
||||||
AC_SEARCH_LIBS([dlopen], [dl dld], [LIBRARY_DL="$LIBS";LIBS=""])
|
AC_SEARCH_LIBS([dlopen], [dl dld], [LIBRARY_DL="$LIBS";LIBS=""])
|
||||||
AC_SUBST(LIBRARY_DL)
|
AC_SUBST(LIBRARY_DL)
|
||||||
|
@ -113,13 +108,6 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
|
||||||
CFLAGS="$saved_CFLAGS"
|
CFLAGS="$saved_CFLAGS"
|
||||||
AC_SUBST(SYMBOL_VISIBILITY)
|
AC_SUBST(SYMBOL_VISIBILITY)
|
||||||
|
|
||||||
AX_CHECK_COMPILE_FLAG([-Werror=implicit], [CFLAGS="$CFLAGS -Werror=implicit"])
|
|
||||||
AX_CHECK_COMPILE_FLAG([-Werror=maybe-uninitialized], [CFLAGS="$CFLAGS -Werror=maybe-uninitialized"])
|
|
||||||
AX_CHECK_COMPILE_FLAG([-Werror=memset-transposed-args], [CFLAGS="$CFLAGS -Werror=memset-transposed-args"])
|
|
||||||
AX_CHECK_COMPILE_FLAG([-Wnull-dereference], [CFLAGS="$CFLAGS -Wnull-dereference"])
|
|
||||||
AX_CHECK_COMPILE_FLAG([-Werror=sizeof-array-argument], [CFLAGS="$CFLAGS -Werror=sizeof-array-argument"])
|
|
||||||
AX_CHECK_COMPILE_FLAG([-Werror=sizeof-pointer-memaccess], [CFLAGS="$CFLAGS -Werror=sizeof-pointer-memaccess"])
|
|
||||||
|
|
||||||
# Coverage build taken from WebKit's configure.in
|
# Coverage build taken from WebKit's configure.in
|
||||||
AC_MSG_CHECKING([whether to enable code coverage support])
|
AC_MSG_CHECKING([whether to enable code coverage support])
|
||||||
AC_ARG_ENABLE(coverage,
|
AC_ARG_ENABLE(coverage,
|
||||||
|
|
|
@ -24,7 +24,6 @@ License: AGPL-3.0-or-later AND GPL-2.0-or-later
|
||||||
Group: Hardware/Mobile
|
Group: Hardware/Mobile
|
||||||
URL: https://osmocom.org/projects/osmohnbgw
|
URL: https://osmocom.org/projects/osmohnbgw
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
BuildRequires: autoconf-archive
|
|
||||||
BuildRequires: automake >= 1.9
|
BuildRequires: automake >= 1.9
|
||||||
BuildRequires: libtool >= 2
|
BuildRequires: libtool >= 2
|
||||||
BuildRequires: lksctp-tools-devel
|
BuildRequires: lksctp-tools-devel
|
||||||
|
|
|
@ -6,7 +6,6 @@ Build-Depends: debhelper (>=9),
|
||||||
dh-autoreconf,
|
dh-autoreconf,
|
||||||
autotools-dev,
|
autotools-dev,
|
||||||
autoconf,
|
autoconf,
|
||||||
autoconf-archive,
|
|
||||||
automake,
|
automake,
|
||||||
libtool,
|
libtool,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
|
|
Loading…
Reference in New Issue