summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2022-08-04 21:36:18 +0200
committerStefan Behnel <stefan_ml@behnel.de>2022-08-04 21:36:18 +0200
commit189f6684474b9d3c5e27696f2ed961657b951204 (patch)
treef1930bfd4b1f16296f700f0bc34a8a18a2fcd6f5
parentc48361d0a0969206e227ec016f654c9d941c2b69 (diff)
downloadcython-189f6684474b9d3c5e27696f2ed961657b951204.tar.gz
Hide a C compiler "unused argument" warning in Py3.11 where the "fast thread state" usage is disabled.
Closes https://github.com/cython/cython/issues/4948
-rw-r--r--Cython/Utility/Exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/Exceptions.c b/Cython/Utility/Exceptions.c
index 2cd4b604e..7896d40dc 100644
--- a/Cython/Utility/Exceptions.c
+++ b/Cython/Utility/Exceptions.c
@@ -647,7 +647,7 @@ static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);/*proto*/
//@substitute: naming
#ifndef CYTHON_CLINE_IN_TRACEBACK
-static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int c_line) {
+static int __Pyx_CLineForTraceback(CYTHON_UNUSED PyThreadState *tstate, int c_line) {
PyObject *use_cline;
PyObject *ptype, *pvalue, *ptraceback;
#if CYTHON_COMPILING_IN_CPYTHON