Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill an unused static global
[simgrid.git] / src / smpi / smpi_memory.cpp
index a080aac..6893833 100644 (file)
@@ -20,9 +20,8 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_memory, smpi, "Memory layout support for SMPI");
 
-#define PROT_RWX (PROT_READ | PROT_WRITE | PROT_EXEC)
-#define PROT_RW (PROT_READ | PROT_WRITE )
-#define PROT_RX (PROT_READ | PROT_EXEC )
+static const int PROT_RWX = (PROT_READ | PROT_WRITE | PROT_EXEC);
+static const int PROT_RW  = (PROT_READ | PROT_WRITE );
 
 void smpi_get_executable_global_size(void)
 {