Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-10-16 07:11:58


Guillaume Melquiond wrote:

>>
>>You have to do that explicitly
>>
>> bjam -sBUILD="release <cxxflags>-w-8008"
>
>
> Yes I know how to do it manually. But I wanted it to be "automatically"
> added.

I see.

>>We could stick that into command line by default, but I'd be -1 on that.
>>The warnings are reasonable.
>>
>>- Volodya
>
>
> I don't them find them reasonable. It's annoying that the compiler
emits a
> lot of warnings on such a code:
>
> template<class a_policy>
> void my_function() {
> if (a_policy::need_to_do_something) { do_something(); }
> do_something_else();
> }
>
> where 'a_policy::need_to_do_something' is a 'static const bool' the user
> has set to 'false'.

It's annoying, but compiler is only as smart as it is. In general, this
warning may me meaningfull, so disabling it is probably not a good idea.
BTW, I think that if users see a warning in a context when it's
unreasonable, then the changes of its been fixed are higher, then if
it's suppressed.

>
> But, as I said, it's for a compiler I won't use anymore. And the
compilers
> I generally use do not emit this kind of warning.

OK.

- Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk