From e487bc416a137686ea225536209076e3afb8a175 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 20 Sep 2015 14:41:52 +0200 Subject: [PATCH] [MSVC] try to shut some warnings in the right file --- src/surf/surf_interface.cpp | 6 ------ src/surf/surf_interface.hpp | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) 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 -- 2.20.1