Page MenuHomeFreeBSD

libthr: avoid gcc -Wcast-function-type
ClosedPublic

Authored by rlibby on Jul 1 2024, 4:49 PM.
Tags
None
Referenced Files
F163989772: D45830.id140439.diff
Mon, Jul 27, 4:48 PM
Unknown Object (File)
Sat, Jul 25, 10:01 PM
Unknown Object (File)
Fri, Jul 24, 8:37 PM
Unknown Object (File)
Sun, Jul 19, 5:42 PM
Unknown Object (File)
Sat, Jul 18, 1:57 AM
Unknown Object (File)
Sun, Jul 5, 3:51 AM
Unknown Object (File)
Sat, Jul 4, 6:18 PM
Unknown Object (File)
May 3 2026, 4:54 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