HomeFreeBSD

Adjust function definitions in mmu_oea64.c to avoid clang 15 warnings

Description

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

(cherry picked from commit 7a98c884f20f7835763d09f2edaccc874d5ee698)

Details

Provenance
dimAuthored on Aug 15 2022, 6:33 PM
Parents
rG957c5a9a4dda: Fix unused variable warning in mmu_radix.c
Branches
Unknown
Tags
Unknown