diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-12-10 12:53:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 12:53:38 (GMT) |
commit | 1fd93ff18cf5cc324c743564ea2347bef06c0de0 (patch) | |
tree | e12139a97e8e42f9ccb7cf44b5a44b1135a90db7 /Python | |
parent | 7bbf7b02ab0852aa757505a7e4062eb52817037a (diff) | |
download | cpython-1fd93ff18cf5cc324c743564ea2347bef06c0de0.zip cpython-1fd93ff18cf5cc324c743564ea2347bef06c0de0.tar.gz cpython-1fd93ff18cf5cc324c743564ea2347bef06c0de0.tar.bz2 |
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.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 2088a27..b561cd0 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -824,8 +824,12 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) PyObject *consts; #if defined(Py_DEBUG) || defined(LLTRACE) /* Make it easier to find out where we are with a debugger */ +#ifdef __GNUC__ + char *filename __attribute__((unused)); +#else char *filename; #endif +#endif /* Tuple access macros */ @@ -1288,7 +1292,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) FAST_DISPATCH(); } - + TARGET_NOARG(DUP_TOP) { v = TOP(); @@ -1835,7 +1839,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) } - + TARGET_WITH_IMPL_NOARG(SLICE, _slice) TARGET_WITH_IMPL_NOARG(SLICE_1, _slice) TARGET_WITH_IMPL_NOARG(SLICE_2, _slice) @@ -1860,7 +1864,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) break; } - + TARGET_WITH_IMPL_NOARG(STORE_SLICE, _store_slice) TARGET_WITH_IMPL_NOARG(STORE_SLICE_1, _store_slice) TARGET_WITH_IMPL_NOARG(STORE_SLICE_2, _store_slice) |