]> Savannah Git Hosting - gnulib.git/commitdiff
Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 .
authorBruno Haible <bruno@clisp.org>
Mon, 15 May 2023 12:56:52 +0000 (14:56 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 15 May 2023 12:56:52 +0000 (14:56 +0200)
Reported by Pádraig Brady <P@draigBrady.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-05/msg00077.html>.

* m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Add
-Wno-missing-field-initializers for GCC < 11.

ChangeLog
m4/gnulib-common.m4

index 9bf5a0d874a2c546be2ca5fa8aaaa6b78b10d0fd..7c5f70d8e6271527c7ba77691babf7bcf9129c82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-05-15  Bruno Haible  <bruno@clisp.org>
+
+       Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 .
+       Reported by Pádraig Brady <P@draigBrady.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2023-05/msg00077.html>.
+       * m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Add
+       -Wno-missing-field-initializers for GCC < 11.
+
 2023-05-15  Bruno Haible  <bruno@clisp.org>
 
        gettimeofday, pthread-*, thread, thrd: Don't omit intended initializers.
index edb8572da2589d9fdcf1bf8d4c8d1d27804e7636..a2b53d33dcad3ce733a48944a3069da1db950637 100644 (file)
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 86
+# gnulib-common.m4 serial 87
 dnl Copyright (C) 2007-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -1053,6 +1053,7 @@ AC_DEFUN([gl_CC_GNULIB_WARNINGS],
     dnl -Wno-float-conversion                 >= 4.9          >= 3.9
     dnl -Wno-float-equal                      >= 3            >= 3.9
     dnl -Wimplicit-fallthrough                >= 7            >= 3.9
+    dnl -Wno-missing-field-initializers       >= 4.0, < 11
     dnl -Wno-pedantic                         >= 4.8          >= 3.9
     dnl -Wno-sign-compare                     >= 3            >= 3.9
     dnl -Wno-sign-conversion                  >= 4.3          >= 3.9
@@ -1078,6 +1079,9 @@ AC_DEFUN([gl_CC_GNULIB_WARNINGS],
       #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
       -Wimplicit-fallthrough
       #endif
+      #if __GNUC__ >= 4 && __GNUC__ < 11 && !defined __clang__
+      -Wno-missing-field-initializers
+      #endif
       #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
       -Wno-pedantic
       #endif