git: 10f0979fc448 - stable/12 - Adjust prototype_unload() definition to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 23 Jul 2022 08:59:02 UTC
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=10f0979fc448c330850e33bc9a010850264aa9f9 commit 10f0979fc448c330850e33bc9a010850264aa9f9 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-19 20:10:03 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-23 08:57:43 +0000 Adjust prototype_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warnings is produced: sys/cddl/dev/prototype.c:99:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] prototype_unload() ^ void This is because prototype_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 9a979788832e1c31d58923e4c780a6c4b05335d0) --- sys/cddl/dev/prototype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/prototype.c b/sys/cddl/dev/prototype.c index 6e31f19d5ce6..2608c505e49a 100644 --- a/sys/cddl/dev/prototype.c +++ b/sys/cddl/dev/prototype.c @@ -93,7 +93,7 @@ prototype_load(void *dummy) static int -prototype_unload() +prototype_unload(void) { int error = 0;