[Python-checkins] Remove unused variable to fix compiler warning in _threadmodule.c (GH-19064)

Pablo Galindo webhook-mailer at python.org
Wed Mar 18 19:34:06 EDT 2020


https://github.com/python/cpython/commit/3cde88439d542ed8ca6395acc8dfffd174ecca18
commit: 3cde88439d542ed8ca6395acc8dfffd174ecca18
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-03-18T23:33:57Z
summary:

Remove unused variable to fix compiler warning in _threadmodule.c (GH-19064)

files:
M Modules/_threadmodule.c

diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c
index 544bfdc137762..bd8a40f0c94b5 100644
--- a/Modules/_threadmodule.c
+++ b/Modules/_threadmodule.c
@@ -1001,10 +1001,8 @@ t_bootstrap(void *boot_raw)
 {
     struct bootstate *boot = (struct bootstate *) boot_raw;
     PyThreadState *tstate;
-    _PyRuntimeState *runtime;
     PyObject *res;
 
-    runtime = boot->runtime;
     tstate = boot->tstate;
     tstate->thread_id = PyThread_get_thread_ident();
     _PyThreadState_Init(tstate);



More information about the Python-checkins mailing list