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)
Sat, Oct 11, 4:31 AM
Unknown Object (File)
Sat, Oct 11, 4:31 AM
Unknown Object (File)
Sat, Oct 11, 4:31 AM
Unknown Object (File)
Fri, Oct 10, 9:27 PM
Unknown Object (File)
Thu, Oct 9, 12:50 AM
Unknown Object (File)
Thu, Oct 2, 4:36 AM
Unknown Object (File)
Tue, Sep 30, 8:08 AM
Unknown Object (File)
Aug 15 2025, 12:09 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