Boost logo

Boost Users :

Subject: [Boost-users] future: unreferenced formal parameter 'lk'
From: forumer_at_[hidden]
Date: 2015-06-12 05:44:29


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

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.

Thanks


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