Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
disable a MSVC warning
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 19 Sep 2015 23:40:34 +0000 (01:40 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 19 Sep 2015 23:40:34 +0000 (01:40 +0200)
src/surf/surf_interface.cpp

index 8c78bcc..155c519 100644 (file)
 #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)");