From 5c5d6ea37067c9a9f429d1aa07c364ca47a29f21 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 20 Sep 2015 01:40:34 +0200 Subject: [PATCH] disable a MSVC warning --- src/surf/surf_interface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 8c78bcc2f0..155c519c12 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -15,6 +15,12 @@ #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' 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)"); -- 2.20.1