Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Add XBT_ATTRIB_UNUSED to prevent OSX compilation error
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 17 Jun 2016 13:03:36 +0000 (15:03 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 17 Jun 2016 13:06:33 +0000 (15:06 +0200)
src/smpi/smpi_memory.cpp

index 6893833..76ed963 100644 (file)
@@ -9,6 +9,7 @@
 #include <limits.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <limits.h>
 #include <stdlib.h>
 #include <sys/types.h>
+
 #ifndef WIN32
 #include <sys/mman.h>
 #include <unistd.h>
 #ifndef WIN32
 #include <sys/mman.h>
 #include <unistd.h>
@@ -22,6 +23,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_memory, smpi, "Memory layout support for SM
 
 static const int PROT_RWX = (PROT_READ | PROT_WRITE | PROT_EXEC);
 static const int PROT_RW  = (PROT_READ | PROT_WRITE );
 
 static const int PROT_RWX = (PROT_READ | PROT_WRITE | PROT_EXEC);
 static const int PROT_RW  = (PROT_READ | PROT_WRITE );
+XBT_ATTRIB_UNUSED static const int PROT_RX  = (PROT_READ | PROT_EXEC );
 
 void smpi_get_executable_global_size(void)
 {
 
 void smpi_get_executable_global_size(void)
 {