Page MenuHomeFreeBSD

libthr: avoid gcc -Wcast-function-type
ClosedPublic

Authored by rlibby on Jul 1 2024, 4:49 PM.
Tags
None
Referenced Files
F142960169: D45830.id.diff
Sat, Jan 24, 11:11 PM
F142935744: D45830.id140439.diff
Sat, Jan 24, 7:38 PM
Unknown Object (File)
Fri, Jan 16, 1:49 AM
Unknown Object (File)
Sat, Jan 3, 3:07 PM
Unknown Object (File)
Wed, Dec 31, 12:46 PM
Unknown Object (File)
Dec 18 2025, 10:10 PM
Unknown Object (File)
Dec 5 2025, 11:26 PM
Unknown Object (File)
Dec 2 2025, 2:32 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