From: Eric Friedman (ebf_at_[hidden])
Date: 2008-05-05 01:01:42
If you want to make a patch that silences the warning, that would seem
reasonable to me.
On Tue, Apr 22, 2008 at 2:38 AM, Richard Webb <richard.webb_at_[hidden]>
> Paul A Bristow <pbristow <at> hetp.u-net.com> writes:
> > >-----Original Message-----
> > >From: boost-bounces <at> lists.boost.org
> > >[mailto:boost-bounces <at> lists.boost.org] On Behalf Of Stephan
> > >Sent: 08 April 2008 20:53
> > >To: boost <at> lists.boost.org
> > >Subject: [boost] [1.35][lexical_cast][concept check][range]
> > >Build error andwarnings with MSVC8 on Warning Level 4
> > >
> > >As we tried to update to 1.35 today, we found some warnings with MSVC
> > >on Warning Level 4 in:
> > >
> > >lexical_cast:
> > >There was a return statement after a call to throw_exception which
> > >causes a unreachable code warning.
> > >I can see no problem by just removing that return.
> > >see http://svn.boost.org/trac/boost/ticket/1791
> Speaking of unreachable code, i get some similar warnings from variant
> building in release mode):
> boost\variant\detail\visitation_impl.hpp(205) : warning C4702: unreachable
> boost\variant\detail\visitation_impl.hpp(180) : warning C4702: unreachable
> boost\variant\detail\visitation_impl.hpp(252) : warning C4702: unreachable
> boost\variant\detail\visitation_impl.hpp(280) : warning C4702: unreachable
> There are some 'should never be here at runtime:' comments in the code in
> question, but it would still be nice to silence the warnings 'officially'.
> Richard Webb
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk