Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[MSVC] try to shut some warnings in the right file
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 20 Sep 2015 12:41:52 +0000 (14:41 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 20 Sep 2015 12:41:52 +0000 (14:41 +0200)
src/surf/surf_interface.cpp
src/surf/surf_interface.hpp

index 155c519..8c78bcc 100644 (file)
 #include "mc/mc.h"
 #include "vm_interface.hpp"
 
 #include "mc/mc.h"
 #include "vm_interface.hpp"
 
-#ifdef _MSC_VER
-#pragma warning(disable: 4251)
-// warning C4251: 'Action::action_hook': class 'boost::intrusive::list_member_hook<void,void,void>' needs to have dll-interface to be used by clients of class 'Action'
-// No worry, compiler. Nobody will use those hooks from outside the DLL (or they will pay the price for it)
-#endif
-
 XBT_LOG_NEW_CATEGORY(surf, "All SURF categories");
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_kernel, surf,
                                 "Logging specific to SURF (kernel)");
 XBT_LOG_NEW_CATEGORY(surf, "All SURF categories");
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_kernel, surf,
                                 "Logging specific to SURF (kernel)");
index 4078d98..f9bc342 100644 (file)
 #define surf_callback_emit(callback, ...) callback(__VA_ARGS__)
 #endif
 
 #define surf_callback_emit(callback, ...) callback(__VA_ARGS__)
 #endif
 
+#ifdef _MSC_VER
+#pragma warning( disable : 4251)
+// 4251: needs to have dll-interface to be used by clients of class
+#endif
+
 extern tmgr_history_t history;
 #define NO_MAX_DURATION -1.0
 
 extern tmgr_history_t history;
 #define NO_MAX_DURATION -1.0