2022-04-19 Paul Eggert <eggert@cs.ucla.edu>
+ Port _GL_HAS_C_ATTRIBUTE to pedantic gcc -std=c99
+ * m4/gnulib-common.m4 (_GL_HAS_C_ATTRIBUTE):
+ Disable -Wpedantic if using __has_c_attribute and this is not C2x.
+
verify: port to pedantic gcc -std=c99
* lib/verify.h (_GL_VERIFY): If we lack both _Static_assert and
static_assert, suppress -Wnexted-externs.
-# gnulib-common.m4 serial 72
+# gnulib-common.m4 serial 73
dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#endif
#ifdef __has_c_attribute
+# if ((defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) <= 201710 \
+ && _GL_GNUC_PREREQ (4, 6))
+# pragma GCC diagnostic ignored "-Wpedantic"
+# endif
# define _GL_HAS_C_ATTRIBUTE(attr) __has_c_attribute (__##attr##__)
#else
# define _GL_HAS_C_ATTRIBUTE(attr) 0