Page MenuHomeFreeBSD

libthr: avoid gcc -Wcast-function-type
ClosedPublic

Authored by rlibby on Jul 1 2024, 4:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 28, 11:43 AM
Unknown Object (File)
Nov 25 2024, 7:34 PM
Unknown Object (File)
Nov 19 2024, 6:04 AM
Unknown Object (File)
Oct 13 2024, 4:37 PM
Unknown Object (File)
Oct 6 2024, 1:42 PM
Unknown Object (File)
Oct 1 2024, 1:39 PM
Unknown Object (File)
Oct 1 2024, 1:26 PM
Unknown Object (File)
Oct 1 2024, 11:20 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable