Resolve shadowing warning.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 5 May 2012 16:05:46 +0000 (18:05 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 6 May 2012 06:02:53 +0000 (08:02 +0200)
ir/be/bedwarf.c

index 2da3ff4..b2c10cc 100644 (file)
@@ -452,8 +452,7 @@ static void emit_function_parameters(const ir_entity *entity,
                ir_type *param_type = get_method_param_type(type, i);
 
                if (infos != NULL && infos[i].entity != NULL) {
                ir_type *param_type = get_method_param_type(type, i);
 
                if (infos != NULL && infos[i].entity != NULL) {
-                       const ir_entity *entity = infos[i].entity;
-                       long             offset = get_entity_offset(entity);
+                       long const offset = get_entity_offset(infos[i].entity);
                        emit_uleb128(DW_TAG_formal_parameter);
                        emit_string_printf("arg%u", (unsigned)i);
                        emit_dbginfo(dbgi);
                        emit_uleb128(DW_TAG_formal_parameter);
                        emit_string_printf("arg%u", (unsigned)i);
                        emit_dbginfo(dbgi);