Issue 36328: tstate may be used uninitialized in Py_NewInterpreter (original) (raw)

Issue36328

Created on 2019-03-17 17:40 by matrixise, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 12381 merged matrixise,2019-03-17 17:42
Messages (2)
msg338134 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2019-03-17 17:40
I get this warning when I compile python without the --with-pydebug flag. Python/pylifecycle.c: In function 'Py_NewInterpreter': Python/pylifecycle.c:1442:12: warning: 'tstate' may be used uninitialized in this function [-Wmaybe-uninitialized] return tstate; ^~~~~~ Does not occur with python 3.7
msg338251 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-03-18 16:10
New changeset 9e06d2b865beb62e54a4da39eb191f9fb8385282 by Victor Stinner (Stéphane Wirtel) in branch 'master': bpo-36328: Fix compiler warning in Py_NewInterpreter() (GH-12381) https://github.com/python/cpython/commit/9e06d2b865beb62e54a4da39eb191f9fb8385282
History
Date User Action Args
2022-04-11 14:59:12 admin set github: 80509
2019-03-18 16:10:49 vstinner set status: open -> closedresolution: fixedcomponents: + Interpreter Corestage: patch review -> resolved
2019-03-18 16:10:34 vstinner set nosy: + vstinnermessages: +
2019-03-17 17:42:38 matrixise set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest12339>
2019-03-17 17:40:54 matrixise create