* m4/gnulib-common.m4 (gl_COMMON_BODY): Make _GL_UNUSED_LABEL use
_GL_ATTRIBUTE_UNUSED also for clang.
+2021-08-22 Bruno Haible <bruno@clisp.org>
+
+ gnulib-common.m4: Make _GL_UNUSED_LABEL effective for clang.
+ * m4/gnulib-common.m4 (gl_COMMON_BODY): Make _GL_UNUSED_LABEL use
+ _GL_ATTRIBUTE_UNUSED also for clang.
+
2021-08-22 Bruno Haible <bruno@clisp.org>
gnulib-common.m4: Use C2x [[maybe_unused]] when possible.
immediately preceding label is not used. The compiler should not warn
if the label is not used. */
/* Applies to: label (both in C and C++). */
-#if !defined __cplusplus || _GL_GNUC_PREREQ (4, 5)
+#if (!defined __cplusplus || _GL_GNUC_PREREQ (4, 5)) || defined __clang__
# define _GL_UNUSED_LABEL _GL_ATTRIBUTE_UNUSED
#else
# define _GL_UNUSED_LABEL