mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.14] gh-135513: Fix unused variable warning in crossinterp.c
(GH-135514) (#135577)
Some checks are pending
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
Some checks are pending
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
gh-135513: Fix unused variable warning in `crossinterp.c` (GH-135514)
(cherry picked from commit 4c15505071
)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
0e0ad7b8ff
commit
027f58473c
1 changed files with 7 additions and 1 deletions
|
@ -2619,7 +2619,9 @@ _PyXI_Enter(_PyXI_session *session,
|
|||
PyInterpreterState *interp, PyObject *nsupdates,
|
||||
_PyXI_session_result *result)
|
||||
{
|
||||
PyThreadState *tstate = _PyThreadState_GET();
|
||||
#ifndef NDEBUG
|
||||
PyThreadState *tstate = _PyThreadState_GET(); // Only used for asserts
|
||||
#endif
|
||||
|
||||
// Convert the attrs for cross-interpreter use.
|
||||
_PyXI_namespace *sharedns = NULL;
|
||||
|
@ -2661,7 +2663,9 @@ _PyXI_Enter(_PyXI_session *session,
|
|||
_enter_session(session, interp);
|
||||
_PyXI_failure override = XI_FAILURE_INIT;
|
||||
override.code = _PyXI_ERR_UNCAUGHT_EXCEPTION;
|
||||
#ifndef NDEBUG
|
||||
tstate = _PyThreadState_GET();
|
||||
#endif
|
||||
|
||||
// Ensure this thread owns __main__.
|
||||
if (_PyInterpreterState_SetRunningMain(interp) < 0) {
|
||||
|
@ -2697,7 +2701,9 @@ error:
|
|||
|
||||
// Exit the session.
|
||||
_exit_session(session);
|
||||
#ifndef NDEBUG
|
||||
tstate = _PyThreadState_GET();
|
||||
#endif
|
||||
|
||||
if (sharedns != NULL) {
|
||||
_destroy_sharedns(sharedns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue