[Numpy-discussion] add NPY_UNUSED to _import_{array|umath}

Lisandro Dalcin dalcinl@gmail....
Wed Aug 18 14:12:35 CDT 2010


When using gcc -Wall, the warnings below are common when including
NumPy headers (e.g. Cython testsuite)

/usr/lib64/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:968:
warning: ‘_import_array’ defined but not used
/usr/lib64/python2.6/site-packages/numpy/core/include/numpy/__ufunc_api.h:182:
warning: ‘_import_umath’ defined but not used

Any chance these functions could be decorated with the NPY_UNUSED() macro ?

-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169


More information about the NumPy-Discussion mailing list