Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove useless header #includes
[simgrid.git] / src / mc / mc_ignore.c
index 8ee35e5..13cab5e 100644 (file)
@@ -5,8 +5,10 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "internal_config.h"
+#include "mc_object_info.h"
 #include "mc_private.h"
 #include "smpi/private.h"
+#include "mc/mc_snapshot.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_ignore, mc,
                                 "Logging specific to MC ignore mechanism");
@@ -225,7 +227,7 @@ static void mc_ignore_local_variable_in_scope(const char *var_name,
 
   // If the current subprogram matche the given name:
   if (!subprogram_name ||
-      subprogram->name && strcmp(subprogram_name, subprogram->name) == 0) {
+      (subprogram->name && strcmp(subprogram_name, subprogram->name) == 0)) {
 
     // Try to find the variable and remove it:
     int start = 0;