Change in ...osmo-sgsn[master]: turn -Werror=null-dereference into a warning

Hoernchen gerrit-no-reply at lists.osmocom.org
Thu Jul 18 22:48:53 UTC 2019


Hoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/14834


Change subject: turn -Werror=null-dereference into a warning
......................................................................

turn -Werror=null-dereference into a warning

There is unfortunately no way to suppres this witha pragma,
and gcc 9 uncovers quite a few new instaces with enabled LTO that can't/won't be fixed

Change-Id: I4d1219bf84d3b8dcaf925a60cf54abe733fba263
---
M configure.ac
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/34/14834/1

diff --git a/configure.ac b/configure.ac
index e72e9d6..a7f908a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,7 +116,7 @@
 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([-Werror=null-dereference], [CFLAGS="$CFLAGS -Werror=null-dereference"])
+AX_CHECK_COMPILE_FLAG([-Wenull-dereference], [CFLAGS="$CFLAGS -Wenull-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"])
 

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

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I4d1219bf84d3b8dcaf925a60cf54abe733fba263
Gerrit-Change-Number: 14834
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190718/b42fddff/attachment.html>


More information about the gerrit-log mailing list