@@ -1695,7 +1695,6 @@ PyUFunc_GeneralizedFunctionInternal(PyUFuncObject *ufunc,
1695
1695
int i , j , idim , nop ;
1696
1696
const char * ufunc_name ;
1697
1697
int retval ;
1698
- int needs_api = 0 ;
1699
1698
1700
1699
/* Use remapped axes for generalized ufunc */
1701
1700
int broadcast_ndim , iter_ndim ;
@@ -2093,7 +2092,7 @@ PyUFunc_GeneralizedFunctionInternal(PyUFuncObject *ufunc,
2093
2092
goto fail ;
2094
2093
}
2095
2094
flags = PyArrayMethod_COMBINED_FLAGS (flags , NpyIter_GetTransferFlags (iter ));
2096
- needs_api = (flags & NPY_METH_REQUIRES_PYAPI ) != 0 ;
2095
+ int needs_api = (flags & NPY_METH_REQUIRES_PYAPI ) != 0 ;
2097
2096
2098
2097
if (!(flags & NPY_METH_NO_FLOATINGPOINT_ERRORS )) {
2099
2098
/* Start with the floating-point exception flags cleared */
@@ -2575,7 +2574,7 @@ PyUFunc_Accumulate(PyUFuncObject *ufunc, PyArrayObject *arr, PyArrayObject *out,
2575
2574
int * op_axes [2 ] = {op_axes_arrays [0 ], op_axes_arrays [1 ]};
2576
2575
npy_uint32 op_flags [2 ];
2577
2576
int idim , ndim ;
2578
- int needs_api , need_outer_iterator ;
2577
+ int need_outer_iterator ;
2579
2578
int res = 0 ;
2580
2579
2581
2580
NPY_cast_info copy_info ;
@@ -2762,7 +2761,7 @@ PyUFunc_Accumulate(PyUFuncObject *ufunc, PyArrayObject *arr, PyArrayObject *out,
2762
2761
flags = PyArrayMethod_COMBINED_FLAGS (flags , NpyIter_GetTransferFlags (iter ));
2763
2762
}
2764
2763
2765
- needs_api = (flags & NPY_METH_REQUIRES_PYAPI ) != 0 ;
2764
+ int needs_api = (flags & NPY_METH_REQUIRES_PYAPI ) != 0 ;
2766
2765
if (!(flags & NPY_METH_NO_FLOATINGPOINT_ERRORS )) {
2767
2766
/* Start with the floating-point exception flags cleared */
2768
2767
npy_clear_floatstatus_barrier ((char * )& iter );
@@ -2983,7 +2982,7 @@ PyUFunc_Reduceat(PyUFuncObject *ufunc, PyArrayObject *arr, PyArrayObject *ind,
2983
2982
op_axes_arrays [2 ]};
2984
2983
npy_uint32 op_flags [3 ];
2985
2984
int idim , ndim ;
2986
- int needs_api , need_outer_iterator = 0 ;
2985
+ int need_outer_iterator = 0 ;
2987
2986
2988
2987
int res = 0 ;
2989
2988
@@ -3186,7 +3185,7 @@ PyUFunc_Reduceat(PyUFuncObject *ufunc, PyArrayObject *arr, PyArrayObject *ind,
3186
3185
flags = PyArrayMethod_COMBINED_FLAGS (flags , NpyIter_GetTransferFlags (iter ));
3187
3186
}
3188
3187
3189
- needs_api = (flags & NPY_METH_REQUIRES_PYAPI ) != 0 ;
3188
+ int needs_api = (flags & NPY_METH_REQUIRES_PYAPI ) != 0 ;
3190
3189
if (!(flags & NPY_METH_NO_FLOATINGPOINT_ERRORS )) {
3191
3190
/* Start with the floating-point exception flags cleared */
3192
3191
npy_clear_floatstatus_barrier ((char * )& iter );
0 commit comments