Commit e3974396 authored by Stefan Behnel's avatar Stefan Behnel

suppress some C compiler warnings about unused function arguments

parent 7714476a
//////////////// Capsule.proto //////////////// //////////////// Capsule.proto ////////////////
/* Todo: wrap the rest of the functionality in similar functions */ /* Todo: wrap the rest of the functionality in similar functions */
static CYTHON_INLINE PyObject *__pyx_capsule_create(void *p, const char *sig); static CYTHON_INLINE PyObject *__pyx_capsule_create(void *p, const char *sig);
//////////////// Capsule //////////////// //////////////// Capsule ////////////////
static CYTHON_INLINE PyObject * static CYTHON_INLINE PyObject *
__pyx_capsule_create(void *p, const char *sig) __pyx_capsule_create(void *p, CYTHON_UNUSED const char *sig)
{ {
PyObject *cobj; PyObject *cobj;
......
...@@ -218,9 +218,8 @@ fail: ...@@ -218,9 +218,8 @@ fail:
} }
static int static int
__pyx_check_suboffsets(Py_buffer *buf, int dim, int ndim, int spec) __pyx_check_suboffsets(Py_buffer *buf, int dim, CYTHON_UNUSED int ndim, int spec)
{ {
// Todo: without PyBUF_INDIRECT we may not have suboffset information, i.e., the // Todo: without PyBUF_INDIRECT we may not have suboffset information, i.e., the
// ptr may not be set to NULL but may be uninitialized? // ptr may not be set to NULL but may be uninitialized?
if (spec & __Pyx_MEMVIEW_DIRECT) { if (spec & __Pyx_MEMVIEW_DIRECT) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment