suppress some C compiler warnings about unused function arguments
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 14 Apr 2013 16:52:41 +0000 (18:52 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 14 Apr 2013 16:52:41 +0000 (18:52 +0200)
Cython/Utility/Capsule.c
Cython/Utility/MemoryView_C.c

index 3d1917c..b9d11ac 100644 (file)
@@ -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;
 
index 376c5aa..e7e4834 100644 (file)
@@ -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) {