Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Value stored to 'size' is never read.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 7 Oct 2013 12:20:18 +0000 (14:20 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 7 Oct 2013 16:25:53 +0000 (18:25 +0200)
teshsuite/xbt/mmalloc_test.c

index cc70aa6..7c1864b 100644 (file)
@@ -38,7 +38,6 @@ int main(int argc, char**argv)
   }
   XBT_INFO("All blocks were correctly allocated. Free every second block");
   for (i = 0; i < TESTSIZE; i+=2) {
   }
   XBT_INFO("All blocks were correctly allocated. Free every second block");
   for (i = 0; i < TESTSIZE; i+=2) {
-    size = size_of_block(i);
     mfree(heapA,pointers[i]);
   }
   XBT_INFO("Memset every second block to zero (yeah, they are not currently allocated :)");
     mfree(heapA,pointers[i]);
   }
   XBT_INFO("Memset every second block to zero (yeah, they are not currently allocated :)");