When compiling a bunch of Cython-generated C files that interface with Numpy, I get the warning:
/usr/lib/pymodules/python2.7/numpy/core/include/numpy/__ufunc_api.h:226:1: warning: ‘_import_umath’ defined but not used [-Wunused-function]
I can't seem to get rid of that. Figuring this might be similar to np.import_array()
, which gets rid of a related warning (and is actually required for using the Numpy C API), I tried np.import_umath()
at top level, but the warning persists. How do I get rid of it?
(Cython 0.17.4, Numpy 1.6.2.)