git: 8f8c0b93d190 - stable/13 - Adjust function definition in vfs_bio.c to avoid clang 15 warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Jul 2022 18:47:25 UTC
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=8f8c0b93d1902aa16baf78bf36a41a6402b7e216 commit 8f8c0b93d1902aa16baf78bf36a41a6402b7e216 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-26 17:48:20 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-29 18:29:09 +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 (cherry picked from commit a387bd1b6a0e18d7abafcbb5ae1870be0604ff15) --- 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 c23f6c35e136..abb9ebc7281b 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3414,7 +3414,7 @@ buf_daemon_shutdown(void *arg __unused, int howto __unused) } static void -buf_daemon() +buf_daemon(void) { struct bufdomain *bd; int speedupreq;