Opened 7 years ago

Closed 7 years ago

#11435 closed Bugs (fixed)

gcc compiler warning in future.hpp

Reported by: peter.klotz@… Owned by: viboes
Milestone: Boost 1.60.0 Component: thread
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

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.

Attachments (1)

boost_1_58_0-ThreadFutureWarning.patch (563 bytes ) - added by peter.klotz@… 7 years ago.

Download all attachments as: .zip

Change History (7)

by peter.klotz@…, 7 years ago

comment:1 by viboes, 7 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

This should be a duplicate of I don't remember what ticket. Fixed already in develop branch.

comment:2 by viboes, 7 years ago

Resolution: duplicate
Status: assignedclosed

comment:3 by anonymous, 7 years ago

Resolution: duplicate
Status: closedreopened
Version: Boost 1.58.0Boost 1.59.0

The warning is still present in Boost 1.59.0 (same file, same line number).

comment:4 by viboes, 7 years ago

Milestone: To Be DeterminedBoost 1.60.0

comment:5 by viboes, 7 years ago

Sorry, I missed the release1.59.

Note: See TracTickets for help on using tickets.