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

Re: Apache Subversion 1.8.0-rc2 Released

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Sun, 26 May 2013 21:38:01 +0300

Branko Čibej wrote on Sun, May 26, 2013 at 20:00:01 +0200:
> On 26.05.2013 16:41, Barry Scott wrote:
> > I see the following warning when compiling on Mac OS X 10.8 with Xcode 4.6.2,
> > "Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)".
> >
> > Would you be willing to change the code to fix the warning?
> >
> > subversion/libsvn_delta/svndiff.c:791:34: warning: adding 'apr_size_t' (aka 'unsigned long') to a string does not append to the string [-Wstring-plus-int]
> > if (memcmp(buffer, "SVN\0" + db->header_bytes, nheader) == 0)
> > ~~~~~~~~^~~~~~~~~~~~~~~~~~
> > subversion/libsvn_delta/svndiff.c:791:34: note: use array indexing to silence this warning
> > if (memcmp(buffer, "SVN\0" + db->header_bytes, nheader) == 0)
> > ^
> > & [ ]
> > subversion/libsvn_delta/svndiff.c:793:39: warning: adding 'apr_size_t' (aka 'unsigned long') to a string does not append to the string [-Wstring-plus-int]
> > else if (memcmp(buffer, "SVN\1" + db->header_bytes, nheader) == 0)
> > ~~~~~~~~^~~~~~~~~~~~~~~~~~
> > subversion/libsvn_delta/svndiff.c:793:39: note: use array indexing to silence this warning
> > else if (memcmp(buffer, "SVN\1" + db->header_bytes, nheader) == 0)
> > ^
> > & [ ]
> > 2 warnings generated.
>
> These warnings are clearly silly. I've been actually thinking about
> disabling them because they only make a kind of sense for people who're
> not used to C.

+1, let's disable them.
Received on 2013-05-26 20:38:42 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.