Skip to content

New warning: unused variable ‘main_interp’  #104233

Closed
@sobolevn

Description

@sobolevn

Снимок экрана 2023-05-06 в 15 17 06

Here:

cpython/Python/ceval_gil.c

Lines 550 to 553 in f508800

PyInterpreterState *main_interp = _PyInterpreterState_Main();
assert(interp != main_interp);
assert(interp->ceval.gil == main_interp->ceval.gil);
interp->ceval.gil = NULL;

Cause: f3e7eb4

I think the right thing to do here is to guard these lines with #ifdef Py_DEBUG.

I will send a PR.
CC @ericsnowcurrently

Linked PRs

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions