xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
authorJim Meyering <meyering@redhat.com>
Thu, 23 Aug 2012 20:02:39 +0000 (22:02 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 24 Aug 2012 09:36:00 +0000 (11:36 +0200)
* lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
to placate gcc's -Wold-style-declaration.

ChangeLog
lib/xstrtol.h

index 570cb9a..03a4ace 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-08-23  Jim Meyering  <meyering@redhat.com>
+
+       xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
+       * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
+       to placate gcc's -Wold-style-declaration.
+
 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        doc: do not use @acronym
index 516ac56..b0dd122 100644 (file)
@@ -66,7 +66,7 @@ _DECLARE_XSTRTOL (xstrtoull, unsigned long long int)
 
    After reporting an error, exit with a failure status.  */
 
-void _Noreturn xstrtol_fatal (enum strtol_error,
+_Noreturn void xstrtol_fatal (enum strtol_error,
                               int, char, struct option const *,
                               char const *);