[Numpy-svn] r5740 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Mon Sep 1 08:07:39 CDT 2008


Author: cdavid
Date: 2008-09-01 08:07:30 -0500 (Mon, 01 Sep 2008)
New Revision: 5740

Modified:
   trunk/numpy/core/src/scalartypes.inc.src
Log:
Fix unused variable warning in object_arrtype_new.


Modified: trunk/numpy/core/src/scalartypes.inc.src
===================================================================
--- trunk/numpy/core/src/scalartypes.inc.src	2008-09-01 12:50:46 UTC (rev 5739)
+++ trunk/numpy/core/src/scalartypes.inc.src	2008-09-01 13:07:30 UTC (rev 5740)
@@ -1899,8 +1899,10 @@
     PyObject *robj;
     PyObject *arr;
     PyArray_Descr *typecode = NULL;
+#if !(@default@ == 2)
     int itemsize;
     void *dest, *src;
+#endif
 
     /* allow base-class (if any) to do conversion */
     /* If successful, this will jump to finish: */



More information about the Numpy-svn mailing list