git: d0d7fcbae420 - main - dumpon: Move the _Noreturn keyword before the return type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jan 2025 18:09:54 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d0d7fcbae4207402b35f37cabe2bb5f30bec7c5d commit d0d7fcbae4207402b35f37cabe2bb5f30bec7c5d Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2025-01-09 17:52:50 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2025-01-09 18:07:51 +0000 dumpon: Move the _Noreturn keyword before the return type This fixes a warning from GCC 14 when compiling with the native C11 _Noreturn rather than the older GNU C function attribute: sbin/dumpon/dumpon.c:73:1: error: '_Noreturn' is not at beginning of declaration [-Werror=old-style-declaration] 73 | static void _Noreturn | ^~~~~~ --- sbin/dumpon/dumpon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c index 46652d8471eb..e6c1634ff6fe 100644 --- a/sbin/dumpon/dumpon.c +++ b/sbin/dumpon/dumpon.c @@ -70,7 +70,7 @@ static int verbose; -static void _Noreturn +static _Noreturn void usage(void) { fprintf(stderr,