Subject: Re: [boost] Can we suppress integer_traits warnings?
From: Dmitry Goncharov (dgoncharov_at_[hidden])
Date: 2009-10-26 08:02:32
John Maddock wrote:
>> gcc has a pragma to do just that
>> #pragma GCC diagnostic ignored "-Wlong-long"
> That doesn't help us because we can't use that in the
> integer_traits.hpp header to suppress the warning in one place and
> then reset it back to it's original state. Also the gcc docs say:
> "Also, while it is syntactically valid to put these pragmas anywhere
> in your sources, the only supported location for them is before any
> data or functions are defined. "
> So basically only end users can use the pragma (at the start of a
> source file before any headers are #included) which again doesn't help
> us library authors :-(
> Cheers, John.
It is also possible to suppress this warning by a command line switch
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk