Opened 5 years ago

Last modified 5 years ago

#375 new defect

Many warnings for buffer access.

Reported by: robertwb Owned by: dagss
Priority: major Milestone: wishlist
Component: Buffers Keywords:
Cc:

Description (last modified by robertwb)

For example, when running the tests

bufaccess.c: In function '__pyx_pf_9bufaccess_printbuf':
bufaccess.c:1758: warning: unused variable '__pyx_boffset_1_buf'
bufaccess.c:1757: warning: unused variable '__pyx_boffset_0_buf'
bufaccess.c:1756: warning: unused variable '__pyx_bshape_1_buf'
bufaccess.c:1755: warning: unused variable '__pyx_bshape_0_buf'
bufaccess.c:1754: warning: unused variable '__pyx_bstride_1_buf'
bufaccess.c:1753: warning: unused variable '__pyx_bstride_0_buf'
bufaccess.cpp: In function 'PyObject* __pyx_pf_9bufaccess_printbuf(PyObject*, PyObject*)':
bufaccess.cpp:1753: warning: unused variable '__pyx_bstride_0_buf'
bufaccess.cpp:1754: warning: unused variable '__pyx_bstride_1_buf'
bufaccess.cpp:1755: warning: unused variable '__pyx_bshape_0_buf'
bufaccess.cpp:1756: warning: unused variable '__pyx_bshape_1_buf'
bufaccess.cpp:1757: warning: unused variable '__pyx_boffset_0_buf'
bufaccess.cpp:1758: warning: unused variable '__pyx_boffset_1_buf'
bufaccess.cpp: In function 'PyObject* __pyx_pf_9bufaccess_get_int_2d_uintindex(PyObject*, PyObject*, PyObject*)':
bufaccess.cpp:5652: warning: comparison between signed and unsigned integer expressions
bufaccess.cpp:5653: warning: comparison between signed and unsigned integer expressions

Change History (4)

comment:1 Changed 5 years ago by robertwb

  • Description modified (diff)

comment:2 Changed 5 years ago by robertwb

  • Component changed from Code Generation to Buffers
  • Owner changed from somebody to dagss

comment:3 Changed 5 years ago by robertwb

Also

/Users/robert/sage/sage-4.0/local/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:969: warning: '_import_array' defined but not used
numpy_bufacc_T155.c:3609: warning: '__Pyx_UnpackItem' defined but not used
numpy_bufacc_T155.c:3619: warning: '__Pyx_EndUnpack' defined but not used
numpy_bufacc_T155.c:719: warning: '__pyx_k_1233' defined but not used
numpy_bufacc_T155.c:720: warning: '__pyx_k_1234' defined but not used
numpy_bufacc_T155.c:740: warning: '__pyx_k_1254' defined but not used
numpy_bufacc_T155.c:746: warning: '__pyx_k_1256' defined but not used
numpy_bufacc_T155.c:747: warning: '__pyx_k_1257' defined but not used
/Users/robert/sage/sage-4.0/local/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:968: warning: 'int _import_array()' defined but not used
numpy_bufacc_T155.cpp:3609: warning: 'PyObject* __Pyx_UnpackItem(PyObject*, Py_ssize_t)' defined but not used
numpy_bufacc_T155.cpp:3619: warning: 'int __Pyx_EndUnpack(PyObject*)' defined but not used
numpy_bufacc_T155.cpp:719: warning: '__pyx_k_1264' defined but not used
numpy_bufacc_T155.cpp:720: warning: '__pyx_k_1265' defined but not used
numpy_bufacc_T155.cpp:740: warning: '__pyx_k_1285' defined but not used
numpy_bufacc_T155.cpp:746: warning: '__pyx_k_1287' defined but not used
numpy_bufacc_T155.cpp:747: warning: '__pyx_k_1288' defined but not used
/Users/robert/sage/sage-4.0/local/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:969: warning: '_import_array' defined but not used
numpy_test.c:9999: warning: '__Pyx_UnpackItem' defined but not used
numpy_test.c:10009: warning: '__Pyx_EndUnpack' defined but not used
numpy_test.c:1135: warning: '__pyx_k_1295' defined but not used
numpy_test.c:1136: warning: '__pyx_k_1296' defined but not used
numpy_test.c:1156: warning: '__pyx_k_1316' defined but not used
numpy_test.c:1162: warning: '__pyx_k_1318' defined but not used
numpy_test.c:1163: warning: '__pyx_k_1319' defined but not used
/Users/robert/sage/sage-4.0/local/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:968: warning: 'int _import_array()' defined but not used
numpy_test.cpp:9999: warning: 'PyObject* __Pyx_UnpackItem(PyObject*, Py_ssize_t)' defined but not used
numpy_test.cpp:10009: warning: 'int __Pyx_EndUnpack(PyObject*)' defined but not used
numpy_test.cpp:1135: warning: '__pyx_k_1376' defined but not used
numpy_test.cpp:1136: warning: '__pyx_k_1377' defined but not used
numpy_test.cpp:1156: warning: '__pyx_k_1397' defined but not used
numpy_test.cpp:1162: warning: '__pyx_k_1399' defined but not used
numpy_test.cpp:1163: warning: '__pyx_k_1400' defined but not used

comment:4 Changed 5 years ago by robertwb

These account for almost the entirety of warnings when running the test suite.

Note: See TracTickets for help on using tickets.