Skip to content

New warning on GitHub: "unused variable ‘runtime’ in pystate.c" #101181

@sobolevn

Description

@sobolevn

All PRs right now show this warning:
Снимок экрана 2023-01-20 в 10 55 11

However, it looks like a false-positive, because runtime is clearly used later on:

cpython/Python/pystate.c

Lines 1881 to 1885 in 3fa8fe7

_PyRuntimeState *runtime = tstate->interp->runtime;
assert(runtime->gilstate.autoInterpreterState == tstate->interp);
assert(current_tss_get(runtime) == tstate);
assert(tstate->gilstate_counter == 1);

Looks like it has started after 6036c3e

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