Boost logo

Boost :

Subject: Re: [boost] Warning generated by boost::process code
From: Klemens Morgenstern (klemens.morgenstern_at_[hidden])
Date: 2017-08-02 20:19:42


Hey Wilfred,

well thanks for using my library, the right place would be to write an
issue here www.github.com/klemens-morgenstern/boost-process .

No need for this issue though, I'll take care of that right now, thanks
for reporting.

Am 02.08.2017 um 21:55 schrieb Wilfred Smith via Boost:
> Dear Sir or Madam,
>
> In Boost 1.64.0,
>
> include/boost/process/detail/posix/wait_group.hpp:131:10: warning: unused variable 'start' [-Wunused-variable]
> auto start = std::chrono::system_clock::now();
> ^
> /usr/local/include/boost/process/detail/posix/wait_group.hpp:165:10: warning: unused variable 'start' [-Wunused-variable]
> auto start = std::chrono::system_clock::now();
> ^
>
> I believe these two lines should be removed. This appears to be a “copy and paste” issue. The two routines above these lines use the “start” variable to calculate a relative time. However, the later two routines use an absolute time, and the compiler complains as shown above.
>
> Removing these two lines should fix the compiler warning and have no adverse effect.
>
> Please let me know if this is the wrong place to complain about issues.
>
> \W/
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk