Opened 7 years ago

Closed 7 years ago

#12028 closed Bugs (worksforme)

warning unreferenced variable at boost/thread/future.hpp

Reported by: Jens Frederich <jfrederich@…> Owned by: viboes
Milestone: Component: thread
Version: Boost 1.58.0 Severity: Cosmetic
Keywords: Cc:

Description

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;

}

}

Change History (3)

comment:1 by viboes, 7 years ago

Have you checked if this has already been fixed?

comment:2 by viboes, 7 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:3 by viboes, 7 years ago

Milestone: To Be Determined
Resolution: worksforme
Status: assignedclosed

It was at least fixed in 1.60.

Note: See TracTickets for help on using tickets.