From ff490346fd519501e9263988959ffb583013ccdb Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 15 Aug 2022 20:44:30 +0200 Subject: [PATCH] Adjust function definition in moea64_native.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/powerpc/aim/moea64_native.c:306:22: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] moea64_install_native() ^ void This is because moea64_install_native() 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/moea64_native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/powerpc/aim/moea64_native.c b/sys/powerpc/aim/moea64_native.c index 167c4ea064b1..4c0aa85a1912 100644 --- a/sys/powerpc/aim/moea64_native.c +++ b/sys/powerpc/aim/moea64_native.c @@ -303,7 +303,7 @@ static struct moea64_funcs moea64_native_funcs = { MMU_DEF_INHERIT(oea64_mmu_native, MMU_TYPE_G5, moea64_native_methods, oea64_mmu); static void -moea64_install_native() +moea64_install_native(void) { /* Install the MOEA64 ops. */