Date: Thu, 9 Jan 2025 18:09:54 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d0d7fcbae420 - main - dumpon: Move the _Noreturn keyword before the return type Message-ID: <202501091809.509I9sQY005490@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501091809.509I9sQY005490>