[NumPy-Tickets] [NumPy] #1946: warning ISO C++ when creating an array in C API
NumPy Trac
numpy-tickets@scipy....
Wed Aug 31 10:13:56 CDT 2011
#1946: warning ISO C++ when creating an array in C API
----------------------+-----------------------------------------------------
Reporter: kcharpen | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: 1.6.0
Keywords: |
----------------------+-----------------------------------------------------
Every array creation function gives me a warning when compiling with the
option -pedantic, with gcc 4.4.3. Even the simplest creation such as :
{{{
PyObject *pnewArray = PyArray_SimpleNew(2, dim, 1);
}}}
will give me the following warning at compilation :
{{{
warning: ISO C++ forbids casting between pointer-to-function and pointer-
to-object
}}}
Is there any way to get rid of it ? Since that despite the warning, the
array creation seems to work, and i can see no problem at execution when
further manipulating the array.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1946>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list