diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-08-15 18:44:30 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-08-15 18:48:35 +0000 |
commit | ff490346fd519501e9263988959ffb583013ccdb (patch) | |
tree | 1d4f42c9f335e526b14b7339350ef1b2c06d4724 | |
parent | 3446738e8deb6d475f88ca16fbb7b11473d17010 (diff) | |
download | src-ff490346fd519501e9263988959ffb583013ccdb.tar.gz src-ff490346fd519501e9263988959ffb583013ccdb.zip |
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
-rw-r--r-- | sys/powerpc/aim/moea64_native.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |