From 06fce030e79ecce57365bc537e38ee0f25861d70 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 15 Aug 2022 20:27:56 +0200 Subject: [PATCH] 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] mpc745x_sleep() ^ void This is because mpc745x_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 --- 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 7a42bc6b960e..3140de8d8977 100644 --- a/sys/powerpc/aim/aim_machdep.c +++ b/sys/powerpc/aim/aim_machdep.c @@ -747,7 +747,7 @@ flush_disable_caches(void) #ifndef __powerpc64__ void -mpc745x_sleep() +mpc745x_sleep(void) { static u_quad_t timebase = 0; static register_t sprgs[4];