# HG changeset patch # User Jim Meyering # Date 1345752159 -7200 # Node ID 2e351049200b7965a9179f050683f34c7b47536b # Parent 4c9ad7a1169939e3147117ff594dc5527e3d3051 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. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-08-23 Jim Meyering + + 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 doc: do not use @acronym diff --git a/lib/xstrtol.h b/lib/xstrtol.h --- a/lib/xstrtol.h +++ b/lib/xstrtol.h @@ -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 *);