Open thesamesam opened 1 year ago
The quick fix we applied in Gentoo is to cast rb_ldap_hash2mods_i to (rb_block_call_func_t), but the compiler output also shows:
ldap.c:204:3: warning: ‘rb_iterate’ is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
So a more robust fix would probably involve moving to rb_block_call.
Clang 16 makes
-Wincompatible-function-pointer-types
an error by default.ruby-ldap hits the following failure when building with Clang 16:
To reproduce this bug:
-Werror=incompatible-function-pointer-types
-Werror=incompatible-pointer-types
(GCC lacks a more specific warning)Reported downstream in Gentoo at https://bugs.gentoo.org/884405.