[issue19757] _tracemalloc.c: compiler warning with gil_state
STINNER Victor
report at bugs.python.org
Thu Nov 28 01:55:43 CET 2013
STINNER Victor added the comment:
Hum, Clang is not kind enough to understand that gil_state is not used when uninitialized.
Well, I always hesitated to refactor the code. So here is a cleanup which moves PyGILState_Ensure/PyGILState_Release to the caller. It duplicates a few lines of code, but the new code should be more readable.
----------
keywords: +patch
Added file: http://bugs.python.org/file32878/cleanup.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19757>
_______________________________________
More information about the Python-bugs-list
mailing list