Boost logo

Boost :

Subject: Re: [boost] Fix some "unused variable" warnings
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2012-10-18 14:20:17


On Oct 18, 2012, at 8:36 AM, Martin Martin <martin_at_[hidden]> wrote:

> Hi,
>
> I'm using boost with clang++, with some style-related warnings turned on,
> and got a few warnings for unused variables. Here's the patch; are you
> interested in these changes? If so, is there a better way to get them to
> you?
>
> Thanks,
> Martin
>
> --- boost_1_51_0/boost/date_time/dst_rules.hpp 2008-02-27
> 15:00:24.000000000 -0500
> +++ boost_1_51_0-fixed/boost/date_time/dst_rules.hpp 2012-10-18
> 09:31:08.433591299 -0400
> @@ -369,11 +369,11 @@
> const time_duration_type&)
> {
> return is_not_in_dst;
> }
>
> - static bool is_dst_boundary_day(date_type d)
> + static bool is_dst_boundary_day(date_type)
> {
> return false;
> }

This one has already been fixed, and will appear in the 1.52 release.

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki


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