Commit 1fd93ff1 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

ceval.c: mark debug 'filename' variable as unused (GH-11074)

Use GCC __attribute__((unused)) to mark the debug variable 'filename'
as unused in Python/ceval.c.
parent 7bbf7b02
...@@ -824,8 +824,12 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) ...@@ -824,8 +824,12 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
PyObject *consts; PyObject *consts;
#if defined(Py_DEBUG) || defined(LLTRACE) #if defined(Py_DEBUG) || defined(LLTRACE)
/* Make it easier to find out where we are with a debugger */ /* Make it easier to find out where we are with a debugger */
#ifdef __GNUC__
char *filename __attribute__((unused));
#else
char *filename; char *filename;
#endif #endif
#endif
/* Tuple access macros */ /* Tuple access macros */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment