git: 6339314c737f - main - Adjust fbt_unload() definition to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Jul 2022 17:43:05 UTC
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=6339314c737f44477c1168819353087c2f4816eb commit 6339314c737f44477c1168819353087c2f4816eb Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-21 17:40:38 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-21 17:42:43 +0000 Adjust fbt_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/cddl/dev/fbt/fbt.c:1273:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] fbt_unload() ^ void This is because fbt_unload() 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/cddl/dev/fbt/fbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/fbt/fbt.c b/sys/cddl/dev/fbt/fbt.c index 1ee7d121f602..35db8938d3c3 100644 --- a/sys/cddl/dev/fbt/fbt.c +++ b/sys/cddl/dev/fbt/fbt.c @@ -1270,7 +1270,7 @@ fbt_load(void *dummy) } static int -fbt_unload() +fbt_unload(void) { int error = 0;