Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2007-06-08 09:44:11


Author: fmhess
Date: 2007-06-08 09:44:11 EDT (Fri, 08 Jun 2007)
New Revision: 4497
URL: http://svn.boost.org/trac/boost/changeset/4497

Log:
Attempt to suppress unused variable warnings on
MSVC 7.1

Text files modified:
   sandbox/boost/thread_safe_signals/single_threaded.hpp | 8 ++++++--
   1 files changed, 6 insertions(+), 2 deletions(-)

Modified: sandbox/boost/thread_safe_signals/single_threaded.hpp
==============================================================================
--- sandbox/boost/thread_safe_signals/single_threaded.hpp (original)
+++ sandbox/boost/thread_safe_signals/single_threaded.hpp 2007-06-08 09:44:11 EDT (Fri, 08 Jun 2007)
@@ -10,6 +10,8 @@
 #ifndef BOOST_SIGNALS_SINGLE_THREADED_MODEL_HEADER
 #define BOOST_SIGNALS_SINGLE_THREADED_MODEL_HEADER
 
+#include <boost/concept_check.hpp>
+
 #ifdef BOOST_HAS_ABI_HEADERS
 # include BOOST_ABI_PREFIX
 #endif
@@ -23,8 +25,10 @@
                         class null_scoped_lock
                         {
                         public:
- null_scoped_lock(null_mutex &)
- {}
+ null_scoped_lock(null_mutex &mutex)
+ {
+ boost::ignore_unused_variable_warning(mutex);
+ }
                         };
                         class null_mutex
                         {


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