Mercurial > gnulib
changeset 17061:2e351049200b
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.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Thu, 23 Aug 2012 22:02:39 +0200 |
parents | 4c9ad7a11699 |
children | 879fe335e7cb |
files | ChangeLog lib/xstrtol.h |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Aug 24 02:19:57 2012 -0700 +++ b/ChangeLog Thu Aug 23 22:02:39 2012 +0200 @@ -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
--- a/lib/xstrtol.h Fri Aug 24 02:19:57 2012 -0700 +++ b/lib/xstrtol.h Thu Aug 23 22:02:39 2012 +0200 @@ -66,7 +66,7 @@ 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 *);