]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definitions in mmu_oea64.c to avoid clang 15 warnings
authorDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:33:25 +0000 (20:33 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:48:34 +0000 (20:48 +0200)
commit7a98c884f20f7835763d09f2edaccc874d5ee698
tree6fcc83fd611a9de179234dd6c7633c0cf8daed0f
parent06fce030e79ecce57365bc537e38ee0f25861d70
Adjust function definitions in mmu_oea64.c to avoid clang 15 warnings

With clang 15, the following -Werror warnings are produced:

    sys/powerpc/aim/mmu_oea64.c:1947:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    moea64_init()
               ^
                void
    sys/powerpc/aim/mmu_oea64.c:3257:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    moea64_scan_init()
                    ^
                     void

This is because moea64_init() and moea64_scan_init() are declared with
(void) argument lists, but defined with empty argument lists. Make the
definitions match the declarations.

MFC after: 3 days
sys/powerpc/aim/mmu_oea64.c