summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-04-10 10:32:13 +0200
committerStefan Behnel <stefan_ml@behnel.de>2015-04-10 10:32:13 +0200
commit9817e3ca276e0a23a241ad5ec851a52d0ff37596 (patch)
tree4f0db82b1ec00440188778c7707c31b76f9769ef /Cython/Utility/ModuleSetupCode.c
parentdecad24352f14d1472f0df45f05cbdad5f19a6b5 (diff)
downloadcython-9817e3ca276e0a23a241ad5ec851a52d0ff37596.tar.gz
be more explicit about "unused argument" marker in cases where it's only unused in non-CPython code
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index ee190ef12..495d2627e 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -257,6 +257,14 @@ class __Pyx_FakeReference {
# endif
#endif
+#ifndef CYTHON_NCP_UNUSED
+# if CYTHON_COMPILING_IN_CPYTHON
+# define CYTHON_NCP_UNUSED
+# else
+# define CYTHON_NCP_UNUSED CYTHON_UNUSED
+# endif
+#endif
+
typedef struct {PyObject **p; char *s; const Py_ssize_t n; const char* encoding;
const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/