HomeFreeBSD

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

Description

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

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

sys/kern/kern_resource.c:1212:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
lim_alloc()
         ^
          void
sys/kern/kern_resource.c:1365:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
uihashinit()
          ^
           void

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

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 26 2022, 2:14 PM
Parents
rGdb8ea61ae261: Adjust function definitions in kern_dtrace.c to avoid clang 15 warnings
Branches
Unknown
Tags
Unknown