From: Martin Quinson Date: Sat, 19 Sep 2015 23:40:34 +0000 (+0200) Subject: disable a MSVC warning X-Git-Tag: v3_12~167 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5c5d6ea37067c9a9f429d1aa07c364ca47a29f21 disable a MSVC warning --- 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)");