HomeFreeBSD

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

Description

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

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

sys/kern/vfs_bio.c:3430:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
buf_daemon()
          ^
           void

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

MFC after: 3 days

(cherry picked from commit a387bd1b6a0e18d7abafcbb5ae1870be0604ff15)

Details

Provenance
dimAuthored on Jul 26 2022, 5:48 PM
Parents
rG3e1adb29f771: Adjust function definition in nd6.c to avoid clang 15 warnings
Branches
Unknown
Tags
Unknown