Page MenuHomeFreeBSD

libthr: avoid gcc -Wcast-function-type
ClosedPublic

Authored by rlibby on Jul 1 2024, 4:49 PM.
Tags
None
Referenced Files
F145002929: D45830.id140518.diff
Sat, Feb 14, 10:46 PM
Unknown Object (File)
Mon, Feb 9, 1:03 AM
Unknown Object (File)
Wed, Jan 28, 6:39 PM
Unknown Object (File)
Sun, Jan 25, 4:29 PM
Unknown Object (File)
Sat, Jan 24, 11:11 PM
Unknown Object (File)
Sat, Jan 24, 7:38 PM
Unknown Object (File)
Jan 16 2026, 1:49 AM
Unknown Object (File)
Jan 3 2026, 3:07 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