|
Boost Users : |
Subject: Re: [Boost-users] [PATCH] Shadow Variables and Unused Globals Cause Warnings/Errors When Headers Are Not in System Path
From: Grant Erickson (gerickson_at_[hidden])
Date: 2009-05-15 00:04:27
On 5/14/09 4:14 PM, Marshall Clow wrote:
> At 4:02 PM -0700 5/14/09, Marshall Clow wrote:
>> At 2:14 PM -0700 5/14/09, Grant Erickson wrote:
>>> I've recently added Boost to an Xcode 3.1.2 project with the following
>>> warnings enabled in GCC/G++ 4.0.1:
>>>
>>> -Werror -Wreturn-type -Wunused-function -Wunused-label -Wunused-variable
>>> -Wshadow
>>>
>>> Unfortunately, when boost is not installed in a "system" path--as is the
>>> case here--unused and shadow variable warnings cause the build to fail when
>>> warnings are treated as errors. This issue last came up for me about a year
>>> ago in 1_35_0 with filesystem.hpp:
>>
>> Grant - you should open a Trac ticket at http://svn.boost.org, and
>> attach the patch there.
>>
>> That will assure that it doesn't get lost.
>
> Even better would be if you could break it up into four tickets; one
> for each library:
>
> accumulators
> circular_buffer
> fusion
> parameter.
Done:
accumulators https://svn.boost.org/trac/boost/ticket/3031
circular_buffer https://svn.boost.org/trac/boost/ticket/3032
fusion https://svn.boost.org/trac/boost/ticket/3033
parameter https://svn.boost.org/trac/boost/ticket/3034
Thanks for the tip!
-Grant
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