You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failing with incompatible function pointer when building on Mac and using libuv 1.48.0 #544
Greetings! We updating the Conan recipe for getdns on ConanCenterIndex (conan-io/conan-center-index#21389) and when building on Mac M1 with Apple Clang 15, getdns fails to be built in case libuv is enabled (BUILD_LIBUV=ON):
src/extension/libuv.c:214:28: error: incompatible function pointer types passing 'void (uv_timer_t *, int)' (aka 'void (struct uv_timer_s *, int)') to parameter of type 'uv_timer_cb' (aka 'void (*)(struct uv_timer_s *)') [-Wincompatible-function-pointer-types]
uv_timer_start(my_timer, getdns_libuv_timeout_cb, timeout, 0);
For now, I just ignored it by using -Wno-error=incompatible-function-pointer-types.
Not sure if could be done something directly in the code to be safer.
Environment
CPU: armv8 (Apple M1)
Build type: Release
Compiler: Apple clang version 15.0.0 (clang-1500.3.9.4)
I did not try using all standalone, like downloading getdns source, and consuming libuv from brew, but only using Conan instead. As I'm a maintainer, we avoid applying unofficial patches and follow as closer as possible to the upstream in terms of configuration, to avoid any unexpected behavior.
Activity