From 1ba1387ffbf3e352e50960a0fcbe4fdc7580de5e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 23 Aug 2012 22:02:39 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ lib/xstrtol.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 570cb9a1a..03a4ace7d 100644 --- 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 index 516ac5655..b0dd12278 100644 --- a/lib/xstrtol.h +++ b/lib/xstrtol.h @@ -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 *); -- 2.11.0