[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Issue with manywarnings.m4
From: |
Frediano Ziglio |
Subject: |
Issue with manywarnings.m4 |
Date: |
Wed, 9 Nov 2016 05:52:47 -0500 (EST) |
I wrote this change to manywarnings.m4 script
(patch apply to a different repository)
PS: Is not clear how to subscribe to the ML.
Frediano
build: Fix wrong -Wno-missing-field-initializers detection
The small code in m4/manywarnings.m4 wrongly detects if
-Wno-missing-field-initializers is needed. This happens if
-Wunused-variable is set. In this case the code fails to compile
due to -Werror even if -Wno-missing-field-initializers would be
perfectly fine.
Signed-off-by: Frediano Ziglio <address@hidden>
---
m4/manywarnings.m4 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4
index 3e6dd21..dab6a0b 100644
--- a/m4/manywarnings.m4
+++ b/m4/manywarnings.m4
@@ -62,10 +62,11 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC],
CFLAGS="$CFLAGS -W -Werror"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
- [[void f (void)
+ [[int f (void)
{
typedef struct { int a; int b; } s_t;
s_t s1 = { 0, };
+ return s1.b;
}
]],
[[]])],
--
2.7.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Issue with manywarnings.m4,
Frediano Ziglio <=