Boost logo

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, 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.



Thanks for the tip!


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at