HomeFreeBSD

Fix unused variable warning in mmu_radix.c

Description

Fix unused variable warning in mmu_radix.c

With clang 15, the following -Werror warning is produced:

sys/powerpc/aim/mmu_radix.c:5409:22: error: variable 'freed' set but not used [-Werror,-Wunused-but-set-variable]
        int allfree, field, freed, idx;
                            ^

The 'freed' variable is only used when PV_STATS is defined. Ensure it is
only declared and set in that case.

MFC after: 3 days

Details

Provenance
dimAuthored on Aug 15 2022, 6:42 PM
Parents
rGfb203abd9d39: Adjust function definitions in mmu_radix.c to avoid clang 15 warnings
Branches
Unknown
Tags
Unknown