]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in moea64_native.c to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:44:30 +0000 (20:44 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 21 Aug 2022 11:16:43 +0000 (13:16 +0200)
commit9ae1196cfa187dd705156e3da72a384f39ebe714
tree108a4456688b8473e075026830aef0a1ff70fba0
parentcba63237c973db872fe9d551fbf1f0eab38be095
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