git: 2d03b58f9a3d - main - Adjust profile_unload() definition to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Jul 2022 19:13:48 UTC
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=2d03b58f9a3d5ec1deb35de594fcee22d06bfbb2 commit 2d03b58f9a3d5ec1deb35de594fcee22d06bfbb2 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-19 18:42:52 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-19 18:42:52 +0000 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 --- sys/cddl/dev/profile/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/profile/profile.c b/sys/cddl/dev/profile/profile.c index 87289ff2717c..89b0b8c9445b 100644 --- a/sys/cddl/dev/profile/profile.c +++ b/sys/cddl/dev/profile/profile.c @@ -637,7 +637,7 @@ profile_load(void *dummy) static int -profile_unload() +profile_unload(void) { int error = 0;