Reported by Paul Eggert.
* m4/gnulib-common.m4 (gl_COMMON_BODY): Add comment and write the
condition in a way that is close to the comment.
+2021-08-22 Bruno Haible <bruno@clisp.org>
+
+ gnulib-common.m4: Clarify logic behind _GL_UNUSED_LABEL.
+ Reported by Paul Eggert.
+ * m4/gnulib-common.m4 (gl_COMMON_BODY): Add comment and write the
+ condition in a way that is close to the comment.
+
2021-08-22 Paul Eggert <eggert@cs.ucla.edu>
c-stack: depend on inttypes, mempcpy
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)) || defined __clang__
+/* Note that g++ < 4.5 does not support the '__attribute__ ((__unused__)) ;'
+ syntax. But clang does. */
+#if !(defined __cplusplus && !_GL_GNUC_PREREQ (4, 5)) || defined __clang__
# define _GL_UNUSED_LABEL _GL_ATTRIBUTE_UNUSED
#else
# define _GL_UNUSED_LABEL