
Hi Dominique, ________________________________________ De: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] En nombre de Dominique Devienne [ddevienne@gmail.com] Enviado el: martes, 07 de abril de 2009 19:18 Para: boost-users Asunto: [Boost-users] [Multi-Index] Suppressing warnings in VS2005 (VC8)
(I'm not sure this is strictly related to Multi-Index in fact)
Hi. If I
#include
#include #include #include #include #include I get
boost\detail\allocator_utilities.hpp(182) : warning C4100: 'p' : unreferenced formal parameter
I've checked this out, the spurious warning seems to happen when the elements of the multi_index_container (which are destroyed via boost::detail::allocator::destroy) are classes with a trivial destructor.
If I try to suppress it with: [...] I get even more warnings (way more).
It' weird, because I tried it myself and the warning indeed
disappears (MSVC 8.0):
#define SUPPRESS_C4100
#ifdef SUPPRESS_C4100
#if defined(_WIN32) && defined( _MSC_VER )
#pragma warning(push)
#pragma warning(disable : 4100) // unreferenced formal parameter
#endif
#endif
#include