Page MenuHomeFreeBSD

libthr: avoid gcc -Wcast-function-type
ClosedPublic

Authored by rlibby on Mon, Jul 1, 4:49 PM.
Tags
None
Referenced Files
F87605633: D45830.diff
Fri, Jul 5, 6:16 PM
Unknown Object (File)
Thu, Jul 4, 10:45 PM
Unknown Object (File)
Wed, Jul 3, 5:32 PM
Unknown Object (File)
Tue, Jul 2, 6:05 PM
Unknown Object (File)
Tue, Jul 2, 4:15 PM
Unknown Object (File)
Tue, Jul 2, 2:36 PM
Unknown Object (File)
Tue, Jul 2, 11:21 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