git: 9ae1196cfa18 - stable/13 - Adjust function definition in moea64_native.c to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Aug 2022 11:29:19 UTC
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=9ae1196cfa187dd705156e3da72a384f39ebe714 commit 9ae1196cfa187dd705156e3da72a384f39ebe714 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-08-15 18:44:30 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-08-21 11:16:43 +0000 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 (cherry picked from commit ff490346fd519501e9263988959ffb583013ccdb) --- 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 a5837886a2a2..aff828a31d6a 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. */