HomeFreeBSD

kobj: avoid gcc -Wcast-function-type

Description

kobj: avoid gcc -Wcast-function-type

The actual type of kobjop_t is arbitrary, it is only used as a generic
function pointer type. Declare it as void (*)(void) in order to avoid
gcc's -Wcast-function-type, which is included in -Wextra.

Reviewed by: avg, jhb
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D28769

Details

Provenance
rlibbyAuthored on Mar 14 2021, 11:04 PM
Reviewer
avg
Differential Revision
D28769: kobj: avoid gcc -Wcast-function-type
Parents
rG5224c2a3bc95: Merge tcsh 6.22.03-ceccc7f
Branches
Unknown
Tags
Unknown