]> Savannah Git Hosting - gnulib.git/commitdiff
Fix version-etc glitch on OpenIndiana
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 May 2020 22:51:10 +0000 (15:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 May 2020 22:52:28 +0000 (15:52 -0700)
Problem reported by Mats Erik Andersson in:
https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
* lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
that now clashes with gnulib-common.h.  All uses changed.

ChangeLog
lib/version-etc.h

index 693671e4612d1db248ae2138d0f4b9ac85c354fa..bd7219102e4e9e0bc6cc41ac063bed6990982d96 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix version-etc glitch on OpenIndiana
+       Problem reported by Mats Erik Andersson in:
+       https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
+       * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
+       that now clashes with gnulib-common.h.  All uses changed.
+
 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        attribute: new module
index 73cad566d82898ced37d937d0be70a00a8cacc93..813084c3decdf304b8de33055d052a7a396134e9 100644 (file)
 # include <stdarg.h>
 # include <stdio.h>
 
-/* The 'sentinel' attribute was added in gcc 4.0.  */
-#ifndef _GL_ATTRIBUTE_SENTINEL
-# if 4 <= __GNUC__
-#  define _GL_ATTRIBUTE_SENTINEL __attribute__ ((__sentinel__))
-# else
-#  define _GL_ATTRIBUTE_SENTINEL /* empty */
-# endif
-#endif
-
 extern const char version_etc_copyright[];
 
 /* The three functions below display the --version information in the
@@ -70,7 +61,7 @@ extern void version_etc (FILE *stream,
                          const char *command_name, const char *package,
                          const char *version,
                          /* const char *author1, ..., NULL */ ...)
-  _GL_ATTRIBUTE_SENTINEL;
+  _GL_ATTRIBUTE_SENTINEL ();
 
 /* Display the usual "Report bugs to" stanza.  */
 extern void emit_bug_reporting_address (void);