]> Savannah Git Hosting - gnulib.git/commitdiff
Simplify -Wno-missing-field-initializers checking
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 May 2023 16:23:01 +0000 (09:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 May 2023 17:11:06 +0000 (10:11 -0700)
* m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Don’t worry about
-Wmissing-field-initializers, as this is no longer needed now that
gl_MANYWARN_ALL_GCC is fixed.

ChangeLog
m4/gnulib-common.m4

index 81057be3d6e667720c1871e1b25db3ae5a8a2789..e09a981eec76c05f35760b7376c2eca4fd358dbf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2023-05-24  Paul Eggert  <eggert@cs.ucla.edu>
 
+       Simplify -Wno-missing-field-initializers checking
+       * m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Don’t worry about
+       -Wmissing-field-initializers, as this is no longer needed now that
+       gl_MANYWARN_ALL_GCC is fixed.
+
        manywarnings: port better to GCC 11.2 and earlier
        Problem reported by Bruno Haible in:
        https://lists.gnu.org/r/bug-diffutils/2023-05/msg00015.html
index a2b53d33dcad3ce733a48944a3069da1db950637..2426eb639852f5e7d07e1c04e609cb174f2e3498 100644 (file)
@@ -1053,7 +1053,6 @@ 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
@@ -1079,9 +1078,6 @@ 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