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)
Fri, Dec 5, 11:26 PM
Unknown Object (File)
Tue, Dec 2, 2:32 PM
Unknown Object (File)
Tue, Nov 18, 3:13 PM
Unknown Object (File)
Nov 3 2025, 3:40 AM
Unknown Object (File)
Nov 3 2025, 2:07 AM
Unknown Object (File)
Nov 3 2025, 2:07 AM
Unknown Object (File)
Nov 3 2025, 2:07 AM
Unknown Object (File)
Nov 3 2025, 2:07 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