[Boost-bugs] [Boost C++ Libraries] #12028: warning unreferenced variable at boost/thread/future.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #12028: warning unreferenced variable at boost/thread/future.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-28 12:36:21


#12028: warning unreferenced variable at boost/thread/future.hpp
-------------------------------------------+----------------------
 Reporter: Jens Frederich <jfrederich@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.58.0 | Severity: Cosmetic
 Keywords: |
-------------------------------------------+----------------------
 I'm using Boost 1.58.0 with MSVS 2013 compiler, warning level 4, and
 treating warnings as errors.
 There is an unreferenced argument 'lk' at get_state. This should be fixed
 on a service pack for 1.58.0, please.


 ...\Boost_1_58_0\include\boost/thread/future.hpp(410): error C2220:
 warning treated as error - no 'object' file generated (Core\EventLoop.cpp)
 ...\Boost_1_58_0\include\boost/thread/future.hpp(410): warning C4100: 'lk'
 : unreferenced formal parameter (Core\EventLoop.cpp)

 future_state::state get_state(boost::unique_lock<boost::mutex>& lk) const
 {
   if(!done)
   {
     return future_state::waiting;
   }
   else
   {
     return future_state::ready;
   }
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12028>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC