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

Skip to content

Commit daf595f

Browse files
committed
Fix icc warnings: shadowing local variable (i) and complex is set but not used, so remove
1 parent 08b401f commit daf595f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Python/symtable.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ update_symbols(PyObject *symbols, PyObject *scope,
539539
*/
540540
if (class &&
541541
PyInt_AS_LONG(o) & (DEF_BOUND | DEF_GLOBAL)) {
542-
int i = PyInt_AS_LONG(o) | DEF_FREE_CLASS;
542+
i = PyInt_AS_LONG(o) | DEF_FREE_CLASS;
543543
o = PyInt_FromLong(i);
544544
if (!o) {
545545
Py_DECREF(free_value);
@@ -1170,7 +1170,7 @@ symtable_implicit_arg(struct symtable *st, int pos)
11701170
static int
11711171
symtable_visit_params(struct symtable *st, asdl_seq *args, int toplevel)
11721172
{
1173-
int i, complex = 0;
1173+
int i;
11741174

11751175
/* go through all the toplevel arguments first */
11761176
for (i = 0; i < asdl_seq_LEN(args); i++) {
@@ -1183,7 +1183,6 @@ symtable_visit_params(struct symtable *st, asdl_seq *args, int toplevel)
11831183
}
11841184
else if (arg->kind == Tuple_kind) {
11851185
assert(arg->v.Tuple.ctx == Store);
1186-
complex = 1;
11871186
if (toplevel) {
11881187
if (!symtable_implicit_arg(st, i))
11891188
return 0;

0 commit comments

Comments
 (0)