From: Gabriel Corona Date: Tue, 17 Jun 2014 10:12:57 +0000 (+0200) Subject: [mc] Remove useless bits X-Git-Tag: v3_12~956^2~1^2~40 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/948810b21269df773e602c1e2ee4bf1c123eb89d [mc] Remove useless bits --- diff --git a/src/mc/mc_compare.c b/src/mc/mc_compare.c index 9411ceb5f5..a51761517a 100644 --- a/src/mc/mc_compare.c +++ b/src/mc/mc_compare.c @@ -337,7 +337,7 @@ static int compare_local_variables(mc_snapshot_t snapshot1, } else { unsigned int cursor = 0; local_variable_t current_var1, current_var2; - int offset1, offset2, res; + int res; while (cursor < xbt_dynar_length(stack1->local_variables)) { current_var1 = (local_variable_t) xbt_dynar_get_as(stack1->local_variables, cursor, @@ -357,11 +357,8 @@ static int compare_local_variables(mc_snapshot_t snapshot1, current_var1->ip, current_var2->ip); return 1; } - offset1 = (char *) current_var1->address - (char *) std_heap; - offset2 = (char *) current_var2->address - (char *) std_heap; // TODO, fix current_varX->subprogram->name to include name if DW_TAG_inlined_subprogram - dw_type_t subtype = current_var1->type; res = compare_areas_with_type(current_var1->address, snapshot1, mc_get_snapshot_region(current_var1->address, snapshot1),