Hoernchen has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-mgw/+/25439 )


Change subject: configure.ac: fix maybe-uninitialized for clang
......................................................................

configure.ac: fix maybe-uninitialized for clang

Clang and gcc have different names for this, but the check fails without
-Werror since clang only warns about unknown args.

The previous check led to a lot of "unknown arg" spam while compiling
with clang.

Change-Id: Iad6c16beed26d5fe8952d7d5a79a93845c391b48
---
M configure.ac
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/39/25439/1

diff --git a/configure.ac b/configure.ac
index 64e2c04..192c012 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,7 +90,8 @@
 dnl Checks for typedefs, structures and compiler characteristics

 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=maybe-uninitialized], [CFLAGS="$CFLAGS 
-Werror=maybe-uninitialized"],,[-Werror])
+AX_CHECK_COMPILE_FLAG([-Werror=sometimes-uninitialized], [CFLAGS="$CFLAGS 
-Werror=sometimes-uninitialized"],,[-Werror])
 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"])

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

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Iad6c16beed26d5fe8952d7d5a79a93845c391b48
Gerrit-Change-Number: 25439
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <[email protected]>
Gerrit-MessageType: newchange

Reply via email to