git: 3e55a45bb7f3 - stable/12 - Adjust function definition in aim_machdep.c to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Aug 2022 11:29:41 UTC
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=3e55a45bb7f3381e55d4c7dd1ef7b90aa4feba8a commit 3e55a45bb7f3381e55d4c7dd1ef7b90aa4feba8a Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-08-15 18:27:56 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-08-21 11:21:55 +0000 Adjust function definition in aim_machdep.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/powerpc/aim/aim_machdep.c:750:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] cpu_sleep() ^ void This is because cpu_sleep() 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 06fce030e79ecce57365bc537e38ee0f25861d70) --- sys/powerpc/aim/aim_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c index aff409d3ccc5..41022014d1bc 100644 --- a/sys/powerpc/aim/aim_machdep.c +++ b/sys/powerpc/aim/aim_machdep.c @@ -649,7 +649,7 @@ flush_disable_caches(void) } void -cpu_sleep() +cpu_sleep(void) { static u_quad_t timebase = 0; static register_t sprgs[4];