Subject: Re: [boost] Showstopper for Boost 1.56?
From: Edward Diener (eldiener_at_[hidden])
Date: 2014-07-30 10:33:30


On 07/30/2014 09:21 AM, Niall Douglas wrote:
> On 30 Jul 2014 at 8:23, Vladimir Prus wrote:
>
>>> That's great news, now we know the cause of the spew!
>>>
>>> This is definitely a showstopper for Boost 1.56, megabytes of warning
>>> spew on clang would be embarrassing for an official release. Bug is
>>> filed at:
>>>
>>> https://svn.boost.org/trac/boost/ticket/10276
>>
>> I suppose this is unfortunate all round - in particular using -Wno-c99-extensions is way
>> wider than the warning we're trying to suppress here.
>>
>> In either case, for a simple change like this, a pull request might be better than
>> an issue.
>
> An alternative could be if Edward wraps the appropriate parts of
> Preprocessor with:
>
> #pragma GCC diagnostic ignored "-Wc99-extensions"
>
> iff building with clang.
>
> I believe clang supports these pragma filters.

It is difficult to know where in the preprocessor code this pragma would
need to be applied.