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)
Thu, Sep 26, 8:26 AM
Unknown Object (File)
Tue, Sep 24, 4:48 PM
Unknown Object (File)
Tue, Sep 24, 1:55 AM
Unknown Object (File)
Mon, Sep 23, 11:38 AM
Unknown Object (File)
Mon, Sep 23, 11:17 AM
Unknown Object (File)
Sat, Sep 21, 7:13 PM
Unknown Object (File)
Fri, Sep 20, 3:25 AM
Unknown Object (File)
Wed, Sep 18, 8:28 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