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)
Sun, May 3, 4:54 PM
Unknown Object (File)
Wed, Apr 29, 9:27 AM
Unknown Object (File)
Wed, Apr 29, 9:23 AM
Unknown Object (File)
Wed, Apr 29, 5:41 AM
Unknown Object (File)
Wed, Apr 29, 5:32 AM
Unknown Object (File)
Tue, Apr 28, 2:51 PM
Unknown Object (File)
Tue, Apr 28, 3:52 AM
Unknown Object (File)
Wed, Apr 22, 11:01 PM
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