]> Savannah Git Hosting - gnulib.git/commitdiff
version-etc: pacify Oracle Studio 12.6
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Sep 2020 08:18:49 +0000 (01:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Sep 2020 08:21:41 +0000 (01:21 -0700)
Without this patch, it complains: "version-etc.h", line 64:
warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
pedantic mode.
* lib/version-etc.h (version_etc): Port to C89 macro rules.

ChangeLog
lib/attribute.h
lib/version-etc.h

index f57bdaf1607169b57fcec06b7500b19d00ed4a87..a826969a8e120fe151faa23d3f90ef9e771027a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+       version-etc: pacify Oracle Studio 12.6
+       Without this patch, it complains: "version-etc.h", line 64:
+       warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
+       pedantic mode.
+       * lib/version-etc.h (version_etc): Port to C89 macro rules.
+
 2020-09-27  Bruno Haible  <bruno@clisp.org>
 
        Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
index d8d6286c05eb191b945f4842175920acdb5bf3f9..b97514655f39b7ab72ba8734208a605486d17fbc 100644 (file)
@@ -80,7 +80,7 @@
 /* Attributes for variadic functions.  */
 
 /* The variadic function expects a trailing NULL argument.
-   ATTRIBUTE_SENTINEL () - The last argument is NULL.
+   ATTRIBUTE_SENTINEL () - The last argument is NULL (requires C99).
    ATTRIBUTE_SENTINEL ((N)) - The (N+1)st argument from the end is NULL.  */
 /* Applies to: functions.  */
 #define ATTRIBUTE_SENTINEL(pos) _GL_ATTRIBUTE_SENTINEL (pos)
index 813084c3decdf304b8de33055d052a7a396134e9..dd1edafd878cbeb43c5471a2ce42d5e10212c419 100644 (file)
@@ -61,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 ((0));
 
 /* Display the usual "Report bugs to" stanza.  */
 extern void emit_bug_reporting_address (void);