mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix icc warnings: shadowing local variable (i) and complex is set but not used, so remove
This commit is contained in:
		
							parent
							
								
									08b401f67a
								
							
						
					
					
						commit
						daf595f8a9
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -539,7 +539,7 @@ update_symbols(PyObject *symbols, PyObject *scope, | ||||||
| 			*/ | 			*/ | ||||||
| 			if  (class &&  | 			if  (class &&  | ||||||
| 			     PyInt_AS_LONG(o) & (DEF_BOUND | DEF_GLOBAL)) { | 			     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); | 				o = PyInt_FromLong(i); | ||||||
| 				if (!o) { | 				if (!o) { | ||||||
| 					Py_DECREF(free_value); | 					Py_DECREF(free_value); | ||||||
|  | @ -1170,7 +1170,7 @@ symtable_implicit_arg(struct symtable *st, int pos) | ||||||
| static int  | static int  | ||||||
| symtable_visit_params(struct symtable *st, asdl_seq *args, int toplevel) | symtable_visit_params(struct symtable *st, asdl_seq *args, int toplevel) | ||||||
| { | { | ||||||
| 	int i, complex = 0; | 	int i; | ||||||
| 	 | 	 | ||||||
|         /* go through all the toplevel arguments first */ |         /* go through all the toplevel arguments first */ | ||||||
| 	for (i = 0; i < asdl_seq_LEN(args); i++) { | 	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) { | 		else if (arg->kind == Tuple_kind) { | ||||||
| 			assert(arg->v.Tuple.ctx == Store); | 			assert(arg->v.Tuple.ctx == Store); | ||||||
|                         complex = 1; |  | ||||||
| 			if (toplevel) { | 			if (toplevel) { | ||||||
| 				if (!symtable_implicit_arg(st, i)) | 				if (!symtable_implicit_arg(st, i)) | ||||||
| 					return 0; | 					return 0; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz