diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-07 21:24:54 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-07 21:24:54 (GMT) |
commit | daf595f8a91c1a9f9a8ba5e06be4fa77c66cccf0 (patch) | |
tree | 3461e2fefd72edc70ea3688323edaf7749fb423e /Python/symtable.c | |
parent | 08b401f67a8dfacc339e5a73a87022236c306279 (diff) | |
download | cpython-daf595f8a91c1a9f9a8ba5e06be4fa77c66cccf0.zip cpython-daf595f8a91c1a9f9a8ba5e06be4fa77c66cccf0.tar.gz cpython-daf595f8a91c1a9f9a8ba5e06be4fa77c66cccf0.tar.bz2 |
Fix icc warnings: shadowing local variable (i) and complex is set but not used, so remove
Diffstat (limited to 'Python/symtable.c')
-rw-r--r-- | Python/symtable.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index 6229b9e..09674d2 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -539,7 +539,7 @@ update_symbols(PyObject *symbols, PyObject *scope, */ 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 @@ symtable_implicit_arg(struct symtable *st, int pos) 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 @@ symtable_visit_params(struct symtable *st, asdl_seq *args, int toplevel) } else if (arg->kind == Tuple_kind) { assert(arg->v.Tuple.ctx == Store); - complex = 1; if (toplevel) { if (!symtable_implicit_arg(st, i)) return 0; |