From: Stefan Behnel Date: Sun, 14 Apr 2013 16:52:41 +0000 (+0200) Subject: suppress some C compiler warnings about unused function arguments X-Git-Tag: 0.19rc1~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3974396adedf96a35d89ac16276eb0d7a768968;p=platform%2Fupstream%2Fpython-cython.git suppress some C compiler warnings about unused function arguments --- diff --git a/Cython/Utility/Capsule.c b/Cython/Utility/Capsule.c index 3d1917c..b9d11ac 100644 --- a/Cython/Utility/Capsule.c +++ b/Cython/Utility/Capsule.c @@ -1,10 +1,12 @@ //////////////// Capsule.proto //////////////// + /* Todo: wrap the rest of the functionality in similar functions */ static CYTHON_INLINE PyObject *__pyx_capsule_create(void *p, const char *sig); //////////////// Capsule //////////////// + static CYTHON_INLINE PyObject * -__pyx_capsule_create(void *p, const char *sig) +__pyx_capsule_create(void *p, CYTHON_UNUSED const char *sig) { PyObject *cobj; diff --git a/Cython/Utility/MemoryView_C.c b/Cython/Utility/MemoryView_C.c index 376c5aa..e7e4834 100644 --- a/Cython/Utility/MemoryView_C.c +++ b/Cython/Utility/MemoryView_C.c @@ -218,9 +218,8 @@ fail: } 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 // ptr may not be set to NULL but may be uninitialized? if (spec & __Pyx_MEMVIEW_DIRECT) {