From: Paul Eggert Date: Wed, 24 May 2023 16:23:01 +0000 (-0700) Subject: Simplify -Wno-missing-field-initializers checking X-Git-Tag: v1.0~1287 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b00ffa282f3c494012a127919f8625e14d89f80d;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 81057be3d6..e09a981eec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2023-05-24 Paul Eggert + 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 diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index a2b53d33dc..2426eb6398 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -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