aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-19 18:42:52 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-23 08:57:42 +0000
commitf72139f3bf28f53fd60998d9e48bd2ab672242df (patch)
treee96cf532f35d6fcf20e90b5b404f5d6f8e154ccf
parent0bbd0daf4ee5b4b7b8ec7650f2c65c499c0d103d (diff)
downloadsrc-f72139f3bf28f53fd60998d9e48bd2ab672242df.tar.gz
src-f72139f3bf28f53fd60998d9e48bd2ab672242df.zip
Adjust profile_unload() definition to avoid clang 15 warning
With clang 15, the following -Werror warnings is produced: sys/cddl/dev/profile/profile.c:640:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] profile_unload() ^ void This is because profile_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 2d03b58f9a3d5ec1deb35de594fcee22d06bfbb2)
-rw-r--r--sys/cddl/dev/profile/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/dev/profile/profile.c b/sys/cddl/dev/profile/profile.c
index 11697cc259a2..56630a35b74a 100644
--- a/sys/cddl/dev/profile/profile.c
+++ b/sys/cddl/dev/profile/profile.c
@@ -665,7 +665,7 @@ profile_load(void *dummy)
static int
-profile_unload()
+profile_unload(void)
{
int error = 0;