git: d1d048891bdb - stable/12 - Adjust fbt_unload() definition to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Jul 2022 11:02:24 UTC
The branch stable/12 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=d1d048891bdb685fd0a465dfa0e30ea23d30a51e
commit d1d048891bdb685fd0a465dfa0e30ea23d30a51e
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-21 17:40:38 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-24 11:01:20 +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
(cherry picked from commit 6339314c737f44477c1168819353087c2f4816eb)
---
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 775100c0a68b..1453b905205e 100644
--- a/sys/cddl/dev/fbt/fbt.c
+++ b/sys/cddl/dev/fbt/fbt.c
@@ -1135,7 +1135,7 @@ fbt_load(void *dummy)
}
static int
-fbt_unload()
+fbt_unload(void)
{
int error = 0;