diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-19 18:24:41 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-23 08:56:43 +0000 |
commit | 0eb3522fd22bb321e003a8b485e68141c3a9434a (patch) | |
tree | 6174f35e49c2f5a8a232863c7af68bca1326d869 | |
parent | eba83491fe4f27735533f75e155ca6140420b506 (diff) | |
download | src-0eb3522fd22bb321e003a8b485e68141c3a9434a.tar.gz src-0eb3522fd22bb321e003a8b485e68141c3a9434a.zip |
Adjust dtmalloc_unload() definition to avoid clang 15 warning
With clang 15, the following -Werror warnings is produced:
sys/cddl/dev/dtmalloc/dtmalloc.c:177:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
dtmalloc_unload()
^
void
This is because dtmalloc_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 a0c55bac79ef684db5f3645fdc1e0fd8da827985)
-rw-r--r-- | sys/cddl/dev/dtmalloc/dtmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/dev/dtmalloc/dtmalloc.c b/sys/cddl/dev/dtmalloc/dtmalloc.c index 3f584dc0860e..3f7cafe07893 100644 --- a/sys/cddl/dev/dtmalloc/dtmalloc.c +++ b/sys/cddl/dev/dtmalloc/dtmalloc.c @@ -186,7 +186,7 @@ dtmalloc_load(void *dummy) static int -dtmalloc_unload() +dtmalloc_unload(void) { int error = 0; |