Boost logo

Boost Users :

Subject: Re: [Boost-users] future: unreferenced formal parameter 'lk'
From: Michael (mwpowellhtx_at_[hidden])
Date: 2015-06-12 06:02:51


On June 12, 2015 5:44:29 AM EDT, forumer_at_[hidden] wrote:
>Hello,
>
>I am using boost 1.58 and when I compile my project I have this
>annoying
>warning:
>Warning 4 warning C4100: 'lk' : unreferenced formal
>parameter C:\proj\boost\include\boost\thread\future.hpp

This is a warning and not an error. Relax your compiler options warnings as errors, something like that.

>When I look at source code I can see that lk is not used:
>
>future_state::state get_state(boost::unique_lock<boost::mutex>& lk)
>const
> {
> if(!done)
> {
> return future_state::waiting;
> }
> else
> {
> return future_state::ready;
> }
> }
>
>It would be great to fix it for the next release.

That or submit a PR?

>Thanks

HTH

>_______________________________________________
>Boost-users mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net