From: Martin Quinson Date: Sun, 20 Sep 2015 12:41:52 +0000 (+0200) Subject: [MSVC] try to shut some warnings in the right file X-Git-Tag: v3_12~156 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e487bc416a137686ea225536209076e3afb8a175 [MSVC] try to shut some warnings in the right file --- diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 155c519c12..8c78bcc2f0 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -15,12 +15,6 @@ #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)"); diff --git a/src/surf/surf_interface.hpp b/src/surf/surf_interface.hpp index 4078d98d8e..f9bc3420f5 100644 --- a/src/surf/surf_interface.hpp +++ b/src/surf/surf_interface.hpp @@ -33,6 +33,11 @@ #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