Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52371 - trunk/boost/detail
From: joaquin_at_[hidden]
Date: 2009-04-13 11:32:43


Author: joaquin
Date: 2009-04-13 11:32:42 EDT (Mon, 13 Apr 2009)
New Revision: 52371
URL: http://svn.boost.org/trac/boost/changeset/52371

Log:
suppressed spurious MSVC warning
Text files modified:
   trunk/boost/detail/allocator_utilities.hpp | 15 ++++++++++++++-
   1 files changed, 14 insertions(+), 1 deletions(-)

Modified: trunk/boost/detail/allocator_utilities.hpp
==============================================================================
--- trunk/boost/detail/allocator_utilities.hpp (original)
+++ trunk/boost/detail/allocator_utilities.hpp 2009-04-13 11:32:42 EDT (Mon, 13 Apr 2009)
@@ -1,4 +1,4 @@
-/* Copyright 2003-2008 Joaquin M Lopez Munoz.
+/* Copyright 2003-2009 Joaquin M Lopez Munoz.
  * Distributed under the Boost Software License, Version 1.0.
  * (See accompanying file LICENSE_1_0.txt or copy at
  * http://www.boost.org/LICENSE_1_0.txt)
@@ -178,6 +178,15 @@
   new (p) Type(t);
 }
 
+#if BOOST_WORKAROUND(BOOST_MSVC,BOOST_TESTED_AT(1500))
+/* MSVC++ issues spurious warnings about unreferencend formal parameters
+ * in destroy<Type> when Type is a class with trivial dtor.
+ */
+
+#pragma warning(push)
+#pragma warning(disable:4100)
+#endif
+
 template<typename Type>
 void destroy(const Type* p)
 {
@@ -190,6 +199,10 @@
 
 }
 
+#if BOOST_WORKAROUND(BOOST_MSVC,BOOST_TESTED_AT(1500))
+#pragma warning(pop)
+#endif
+
 } /* namespace boost::detail::allocator */
 
 } /* namespace boost::detail */


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk