]> AND Public Git Repository - simgrid.git/blobdiff - src/xbt/mmalloc/mm_legacy.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add comments to acknowledge empty functions (and please Sonar).
[simgrid.git] / src / xbt / mmalloc / mm_legacy.c
index dafcbbdda3e581a83997152b4ae13f61ddb708f6..6b9677663392076b8a2acd9471dc2230f2d41640 100644 (file)
@@ -51,7 +51,7 @@ xbt_mheap_t mmalloc_set_current_heap(xbt_mheap_t new_heap)
 }
 
 /* Override the malloc-like functions if MC is activated at compile time */
-#if HAVE_MC
+#if SIMGRID_HAVE_MC
 
 /* ***** Temporary allocator
  *
@@ -99,6 +99,7 @@ static void* mm_fake_realloc(void *p, size_t s)
 
 static void mm_fake_free(void *p)
 {
+  // Nothing to do
 }
 
 /* Function signatures for the main malloc functions: */
@@ -267,4 +268,4 @@ void free(void *p)
   mfree(mdp, p);
   UNLOCK(mdp);
 }
-#endif /* HAVE_MC */
+#endif /* SIMGRID_HAVE_MC */