
26 Oct
2009
26 Oct
'09
12:02 p.m.
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 -Wno-long-long BR, Dmitry