-
- Downloads
graphics/py-pygeos: Fix build with Clang 16 and remove the workaround
src/ufuncs.c:166:47: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction Y_b_funcs[1] = {&Y_b_func}; ^~~~~~~~~ src/ufuncs.c:198:47: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction O_b_funcs[1] = {&O_b_func}; ^~~~~~~~~ src/ufuncs.c:239:48: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction YY_b_funcs[1] = {&YY_b_func}; ^~~~~~~~~~ src/ufuncs.c:320:50: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction YY_b_p_funcs[1] = {&YY_b_p_func}; ^~~~~~~~~~~~ src/ufuncs.c:341:55: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction is_prepared_funcs[1] = {&is_prepared_func}; ^~~~~~~~~~~~~~~~~ src/ufuncs.c:458:47: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction Y_Y_funcs[1] = {&Y_Y_func}; ^~~~~~~~~ src/ufuncs.c:507:45: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction Y_funcs[1] = {&Y_func}; ^~~~~~~ src/ufuncs.c:593:48: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction Yd_Y_funcs[1] = {&Yd_Y_func}; ^~~~~~~~~~ src/ufuncs.c:729:48: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction Yi_Y_funcs[1] = {&Yi_Y_func}; ^~~~~~~~~~ src/ufuncs.c:877:48: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction YY_Y_funcs[1] = {&YY_Y_func}; ^~~~~~~~~~ src/ufuncs.c:981:47: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction Y_d_funcs[1] = {&Y_d_func}; ^~~~~~~~~ src/ufuncs.c:1066:47: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction Y_i_funcs[1] = {&Y_i_func}; ^~~~~~~~~ src/ufuncs.c:1159:48: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction YY_d_funcs[1] = {&YY_d_func}; ^~~~~~~~~~ src/ufuncs.c:1200:49: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction YYd_d_funcs[1] = {&YYd_d_func}; ^~~~~~~~~~~ src/ufuncs.c:1253:49: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction YYd_Y_funcs[1] = {&YYd_Y_func}; ^~~~~~~~~~~ src/ufuncs.c:1298:47: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction box_funcs[1] = {&box_func}; ^~~~~~~~~ src/ufuncs.c:1389:50: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction buffer_funcs[1] = {&buffer_func}; ^~~~~~~~~~~~ src/ufuncs.c:1451:56: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction offset_curve_funcs[1] = {&offset_curve_func}; ^~~~~~~~~~~~~~~~~~ src/ufuncs.c:1496:48: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] static PyUFuncGenericFunction snap_funcs[1] = {&snap_func}; ^~~~~~~~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=] 2 warnings and 20 errors generated. Reference: https://github.com/numpy/numpy/commit/e94cec800304a6a467cf90ce4e7d3e207770b4b4
graphics/py-pygeos/files/patch-clang16
0 → 100644
This diff is collapsed.
Please register or sign in to comment