HomeFreeBSD

libthr: avoid gcc -Wcast-function-type

Description

libthr: avoid gcc -Wcast-function-type

The actual types of pthread_func_t and interpos_func_t are not used.
Declare them as the generic void (*)(void) which suppresses warnings.

https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcast-function-type

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D45830

Details

Provenance
rlibbyAuthored on Jul 3 2024, 3:38 PM
Reviewer
kib
Differential Revision
D45830: libthr: avoid gcc -Wcast-function-type
Parents
rG7b1c770341fe: libthr _get_curthread i386: quiet gcc -Warray-bounds
Branches
Unknown
Tags
Unknown