From 189f6684474b9d3c5e27696f2ed961657b951204 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 4 Aug 2022 21:36:18 +0200 Subject: 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 --- Cython/Utility/Exceptions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1