Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48fba73

Browse files
committed
Remove the last gcc -Wall warning about possible use of an uninitialized
variable. w should be initialized before entering the bytecode interpretation loop since we only need one initialization to satisfy the compiler.
1 parent 35ba689 commit 48fba73

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/ceval.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ eval_code2(PyCodeObject *co, PyObject *globals, PyObject *locals,
578578
why = WHY_NOT;
579579
err = 0;
580580
x = Py_None; /* Not a reference, just anything non-NULL */
581+
w = NULL;
581582

582583
for (;;) {
583584
/* Do periodic things. Doing this every time through

0 commit comments

Comments
 (0)