git: 8281969c16c0 - stable/13 - Adjust profile_unload() definition to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 23 Jul 2022 08:58:17 UTC
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=8281969c16c0de0497c32454938e8a0452f55a54 commit 8281969c16c0de0497c32454938e8a0452f55a54 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-19 18:42:52 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-23 08:56:44 +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 (cherry picked from commit 2d03b58f9a3d5ec1deb35de594fcee22d06bfbb2) --- 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 1e7a84c272cd..530a8fcd1749 100644 --- a/sys/cddl/dev/profile/profile.c +++ b/sys/cddl/dev/profile/profile.c @@ -649,7 +649,7 @@ profile_load(void *dummy) static int -profile_unload() +profile_unload(void) { int error = 0;