Mercurial > cpython-lru_cache-weakref
diff Python/symtable.c @ 36226:bb6fa4a31f15 legacy-trunk
Fix icc warnings: shadowing local variable (i) and complex is set but not used, so remove
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 07 Jan 2006 21:24:54 +0000 |
| parents | 4aa01879a8f5 |
| children | d3f4c467e439 |
line wrap: on
line diff
--- a/Python/symtable.c Sat Jan 07 21:24:09 2006 +0000 +++ b/Python/symtable.c Sat Jan 07 21:24:54 2006 +0000 @@ -539,7 +539,7 @@ */ if (class && PyInt_AS_LONG(o) & (DEF_BOUND | DEF_GLOBAL)) { - int i = PyInt_AS_LONG(o) | DEF_FREE_CLASS; + i = PyInt_AS_LONG(o) | DEF_FREE_CLASS; o = PyInt_FromLong(i); if (!o) { Py_DECREF(free_value); @@ -1170,7 +1170,7 @@ static int symtable_visit_params(struct symtable *st, asdl_seq *args, int toplevel) { - int i, complex = 0; + int i; /* go through all the toplevel arguments first */ for (i = 0; i < asdl_seq_LEN(args); i++) { @@ -1183,7 +1183,6 @@ } else if (arg->kind == Tuple_kind) { assert(arg->v.Tuple.ctx == Store); - complex = 1; if (toplevel) { if (!symtable_implicit_arg(st, i)) return 0;
