HomeFreeBSD

Adjust function definition in ufs_dirhash.c to avoid clang 15 warnings

Description

Adjust function definition in ufs_dirhash.c to avoid clang 15 warnings

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

sys/ufs/ufs/ufs_dirhash.c:1252:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
ufsdirhash_lowmem()
                 ^
                  void

This is ufsdirhash_lowmem() is declared with a (void) argument list, but
defined with an empty argument list. Make the definition match the
declaration.

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 26 2022, 7:22 PM
Parents
rGc01fdd7a9f31: Fix unused variable warning in netipsec's key_debug.c
Branches
Unknown
Tags
Unknown