]> 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 4fb087a92c8541daea4e4801567a505cd1718492..6b9677663392076b8a2acd9471dc2230f2d41640 100644 (file)
 
 #include <dlfcn.h>
 
-#include "src/mc/mc_base.h"
 #include "mmprivate.h"
-#include "src/xbt_modinter.h"
 #include "src/internal_config.h"
+#include "src/mc/mc_base.h"
+#include "src/mc/remote/mc_protocol.h"
+#include "src/xbt_modinter.h"
 #include <math.h>
-#include "src/mc/mc_protocol.h"
 
 /* ***** Whether to use `mmalloc` of the underlying malloc ***** */
 
@@ -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 */