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
>
> #ifdef BOOST_WARNING_MSVC_WORKAROUND
> #pragma warning(push)
> #pragma warning(disable:4127)
> #endif
>
> ...
>
> #ifdef BOOST_WARNING_MSVC_WORKAROUND
> #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.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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