[NumPy-Tickets] [NumPy] #1443: #warning directives are not portable

NumPy Trac numpy-tickets@scipy....
Wed Mar 31 18:53:09 CDT 2010


#1443: #warning directives are not portable
---------------------+------------------------------------------------------
 Reporter:  cgohlke  |       Owner:  somebody
     Type:  defect   |      Status:  new     
 Priority:  normal   |   Milestone:  2.0.0   
Component:  Other    |     Version:  devel   
 Keywords:           |  
---------------------+------------------------------------------------------
 numpy trunk r8313 contains 14 #warning statements and therefore can not be
 built with Microsoft Visual C compilers. Please consider using #pragma
 directives instead.

 {{{
 numpy\core\src\multiarray\scalartypes.c.src(1965): #warning XXX: the
 format is not implemented! -- this needs more work
 numpy\core\src\scalarmathmodule.c.src(1310): #warning XXX -- is it
 important to do something with the integers here?
 numpy\core\src\scalarmathmodule.c.src(1354): #warning XXX -- is it
 important to do something with the integers here?
 numpy\core\src\scalarmathmodule.c.src(1397): #warning XXX -- is it
 important to do something with the integers here?
 numpy\core\src\scalarmathmodule.c.src(1440): #warning XXX -- is it
 important to do something with the integers here?
 numpy\core\src\scalarmathmodule.c.src(1524): #warning XXX -- is it
 important to do something with the integers here?
 numpy\core\src\multiarray\buffer.c(251): #warning XXX -- should it use
 UTF-8 here?
 numpy\core\src\multiarray\common.c(311): #warning XXX -- what is the
 correct thing to do here?
 numpy\core\src\multiarray\ctors.c(1099): #warning XXX -- what is the
 correct thing to do here?
 numpy\f2py\cfuncs.py(269): #warning HAVE_LONG_LONG is not available.
 Redefining pyobj_from_long_long.
 numpy\lib\src\_compiled_base.c(577): #warning XXX -- is this correct at
 all!?
 numpy\numarray\_capi.c(93): #warning XXX - needs implementation
 numpy\numarray\_capi.c(130): #warning XXX - needs implementation
 numpy\numarray\_capi.c(153): #warning XXX - needs implementation
 }}}

 See also [http://stackoverflow.com/questions/171435/portability-of-
 warning-preprocessor-directive]

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1443>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list