]> Savannah Git Hosting - gnulib.git/commitdiff
manywarnings: fix -Wno-missing-field-initializers detection
authorFrediano Ziglio <fziglio@redhat.com>
Wed, 9 Nov 2016 11:21:51 +0000 (06:21 -0500)
committerPádraig Brady <P@draigBrady.com>
Wed, 9 Nov 2016 17:02:09 +0000 (17:02 +0000)
* m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
to be independent of -Wunused-variable.  I.E. ensure the latter
warning doesn't occur so that detection of the former is accurate.

ChangeLog
m4/manywarnings.m4

index f2b44269c6c5c1d05b0c49e53977db4373da4321..8233beab74f164bc333547dace11c0585b558adb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
+
+       manywarnings: fix -Wno-missing-field-initializers detection
+       * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
+       to be independent of -Wunused-variable.  I.E. ensure the latter
+       warning doesn't occur so that detection of the former is accurate.
+
 2016-11-05  Pádraig Brady  <pbrady@fb.com>
 
        strftime,strptime: support %q to represent the quarter
index 89fd0ae38e387b9451fb62cb37936ccaefff3686..4f701f4eaca3aaad2f779f212b67337127fb9a79 100644 (file)
@@ -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;
                }
              ]],
              [[]])],