aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-19 20:10:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-20 15:13:49 +0000
commit9a979788832e1c31d58923e4c780a6c4b05335d0 (patch)
treed85b6f2c674d24dbd865c3b49cdfffc3c09ca0fe /sys/cddl
parentc46c9b3f5f1eb5575a5e42f52872dbea9cf7516f (diff)
downloadsrc-9a979788832e1c31d58923e4c780a6c4b05335d0.tar.gz
src-9a979788832e1c31d58923e4c780a6c4b05335d0.zip
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
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/dev/prototype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/dev/prototype.c b/sys/cddl/dev/prototype.c
index bcbb3d202b27..203d910f5e00 100644
--- a/sys/cddl/dev/prototype.c
+++ b/sys/cddl/dev/prototype.c
@@ -96,7 +96,7 @@ prototype_load(void *dummy)
static int
-prototype_unload()
+prototype_unload(void)
{
int error = 0;