Boost logo

Boost :

Subject: Re: [boost] [warnings] Are warnings acceptable artifactsfrom builds?
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-09-08 19:46:44

On Tue, Sep 8, 2009 at 4:26 PM, Thomas
Klimpel<Thomas.Klimpel_at_[hidden]> wrote:
> I don't know what about the boost way to silence warnings, but if it is along the line of
> #pragma warning(push)
> #pragma warning(disable:4127)
> #endif
> ...
> #pragma warning(pop)
> #endif
> then silencing 60+ warnings in this way will add 420+ lines to the source code.

Unfortunately many compilers have no such features.

IMHO the best way to address warnings is not to disable them globally,
but to be able to tag a section of code as "pls to disable warning X
for this code kthx" but that's also not widely available, AFAIK.

Emil Dotchevski
Reverge Studios, Inc.

Boost list run by bdawes at, gregod at, cpdaniel at, john at