Change in osmo-gbproxy[master]: Revert "Turn some compiler warnings into errors"

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Thu Nov 4 10:22:39 UTC 2021


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gbproxy/+/26100 )


Change subject: Revert "Turn some compiler warnings into errors"
......................................................................

Revert "Turn some compiler warnings into errors"

Do not turn some compiler warnings into errors by default. This patch
was added before --enable-werror was available.

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 reverts commit 34f012639ddf41470714ae74ae961d158670a4c7.

Related: OS#5289
Change-Id: I2fb777410ffc181feabd6aee3beda3ed05ba5c90
---
M configure.ac
1 file changed, 0 insertions(+), 12 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gbproxy refs/changes/00/26100/1

diff --git a/configure.ac b/configure.ac
index 309d3f7..11ebac4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,11 +34,6 @@
 fi
 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 use a defined standard across all builds and don't depend on compiler default
 CFLAGS="$CFLAGS -std=gnu11"
 
@@ -105,13 +100,6 @@
 CPPFLAGS="$CPPFLAGS -Wall -Wno-trigraphs"
 CFLAGS="$CFLAGS -Wall -Wno-trigraphs"
 
-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
 AC_MSG_CHECKING([whether to enable code coverage support])
 AC_ARG_ENABLE(coverage,

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gbproxy/+/26100
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gbproxy
Gerrit-Branch: master
Gerrit-Change-Id: I2fb777410ffc181feabd6aee3beda3ed05ba5c90
Gerrit-Change-Number: 26100
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211104/37fe63f1/attachment.htm>


More information about the gerrit-log mailing list