git: a387bd1b6a0e - main - Adjust function definition in vfs_bio.c to avoid clang 15 warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Jul 2022 18:00:42 UTC
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a387bd1b6a0e18d7abafcbb5ae1870be0604ff15 commit a387bd1b6a0e18d7abafcbb5ae1870be0604ff15 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-26 17:48:20 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-26 17:59:57 +0000 Adjust function definition in vfs_bio.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/kern/vfs_bio.c:3430:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] buf_daemon() ^ void This is because buf_daemon() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days --- sys/kern/vfs_bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 8da40824e217..aca79eb466b2 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3427,7 +3427,7 @@ buf_daemon_shutdown(void *arg __unused, int howto __unused) } static void -buf_daemon() +buf_daemon(void) { struct bufdomain *bd; int speedupreq;