Re: OWC meets subversion.
From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 14 Nov 2011 08:26:36 +0200
On Monday, November 14, 2011 8:27 AM, "NormW" <normw_at_gknw.net> wrote:
Well, perhaps fix the compiler instead of rewriting everyone's switch
(But not opposed to committing this if people can't build svn
> FYI: The 'warn' blips; at least the first 2 are already noted in the
> > D:\Projects\srcs\subversion-1.7.1\subversion\libsvn_delta\compose_delta.c(707): Warning! W124: Comparison result always 1
As you say: known issues noted in comments. Yes, would be nice to fix
> > D:\Projects\srcs\subversion-1.7.1\subversion\libsvn_subr\pool.c(55): Warning! W107: Missing return value for function 'abort_on_pool_failure'
If we make this return an int then we'd have to cast it at the callsite
> > D:\Projects\srcs\subversion-1.7.1\subversion\libsvn_subr\skel.c(233): Warning! W136: Comparison equivalent to 'unsigned == 0'
The code is correct (and future-proof if len ever becomes signed).
> > D:\Projects\srcs\subversion-1.7.1\subversion\libsvn_subr\stream.c(1066): Warning! W136: Comparison equivalent to 'unsigned == 0'
Same
> > D:\Projects\srcs\subversion-1.7.1\subversion\libsvn_ra_svn\marshal.c(577): Warning! W124: Comparison result always 0
Same issue as in the 2nd warning: checks for overflow by checking
> > D:\Projects\srcs\subversion-1.7.1\subversion\libsvn_ra_neon\merge.c(159): Warning! W113: Pointer type mismatch
Casting an enum { x=1, y=2 } to/from a void*.
We could restructure this with sentinels, I suppose:
static void *recurse[2];
apr_hash_set(valid_targets, key, klen, &recurse[FALSE]);
> > D:\Projects\srcs\subversion-1.7.1\subversion\svnlook\main.c(2376): Warning! W136: Comparison equivalent to 'unsigned == 0'
Again: too trigger-happy. It's valid to ask whether an unsigned is nonpositive.
>
Thanks for your input,
Daniel
|
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.