[Boost-bugs] [Boost C++ Libraries] #11435: gcc compiler warning in future.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #11435: gcc compiler warning in future.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-06-30 06:41:05


#11435: gcc compiler warning in future.hpp
------------------------------+----------------------
 Reporter: peter.klotz@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------
 Boost.Thread 1.58 emits this warning when compiling under RHEL7/gcc 4.8:

 /home/user/Boost/1.58.0/include/boost/thread/future.hpp:410:33: warning:
 unused parameter ‘lk’ [-Wunused-parameter]
              future_state::state
 get_state(boost::unique_lock<boost::mutex>& lk) const

 The attached patch fixes the warning.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11435>
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:18 UTC