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)
Wed, Mar 25, 2:52 AM
Unknown Object (File)
Wed, Mar 25, 1:34 AM
Unknown Object (File)
Fri, Mar 20, 2:48 PM
Unknown Object (File)
Fri, Mar 20, 12:33 AM
Unknown Object (File)
Thu, Mar 19, 6:02 PM
Unknown Object (File)
Mar 4 2026, 11:53 PM
Unknown Object (File)
Feb 25 2026, 7:33 PM
Unknown Object (File)
Feb 19 2026, 8:27 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