+2024-10-02 Bruno Haible <bruno@clisp.org>
+
+ Silence -Wunused-const-variable warnings in Gnulib code.
+ Reported by Yuri Kanivetsky <yuri.kanivetsky@gmail.com>
+ via Pádraig Brady in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2024-10/msg00007.html>.
+ * m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Add
+ -Wno-unused-const-variable whenever it is supported.
+
2024-10-01 Paul Eggert <eggert@cs.ucla.edu>
file-has-acl-tests: omit string.h include
# gnulib-common.m4
-# serial 104
+# serial 105
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl -Wno-type-limits >= 4.3 >= 3.9
dnl -Wno-undef >= 3 >= 3.9
dnl -Wno-unsuffixed-float-constants >= 4.5
+ dnl -Wno-unused-const-variable >= 4.4 >= 3.9
dnl -Wno-unused-function >= 3 >= 3.9
dnl -Wno-unused-parameter >= 3 >= 3.9
dnl
-Wno-sign-conversion
-Wno-type-limits
#endif
+ #if (__GNUC__ + (__GNUC_MINOR__ >= 4) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
+ -Wno-unused-const-variable
+ #endif
#if (__GNUC__ + (__GNUC_MINOR__ >= 5) > 4 && !defined __clang__)
-Wno-unsuffixed-float-constants
#endif