[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1381766 - /subversion/trunk/subversion/libsvn_subr/utf_validate.c

From: Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com>
Date: Wed, 12 Sep 2012 00:22:37 +0200

On Mon, Sep 10, 2012 at 12:58 AM, Johan Corveleyn <jcorvel_at_gmail.com> wrote:

> On Thu, Sep 6, 2012 at 11:30 PM, <stefan2_at_apache.org> wrote:
> > Author: stefan2
> > Date: Thu Sep 6 21:30:40 2012
> > New Revision: 1381766
>

> > +
> > + /* The remaining odd bytes will be examined the naive way: */
> > + for (; ; ++data)
> > + if (*data <= 0)
> > + return data;
> > +
> > + return data;
>
> I get a compiler warning here (VS 2010):
>
>
> c:\research\svn\client_build\trunk2\subversion\libsvn_subr\utf_validate.c(328):
> warning C4702: unreachable code
>
> It seems that last "return data;" is superfluous, since the loop above
> it can only end by returning?
>

Thanks for pointing that out, Johan!
Fixed in r1383640.

-- Stefan^2.

-- 
*
Join us this October at Subversion Live
2012<http://www.wandisco.com/svn-live-2012>
 for two days of best practice SVN training, networking, live demos,
committer meet and greet, and more! Space is limited, so get signed up
today<http://www.wandisco.com/svn-live-2012>
!
*
Received on 2012-09-12 00:23:11 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.