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

Re: Inconsistent "might be used uninitialized in this function" warnings

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-12-14 15:56:22 CET

Blair Zajac <blair@orcaware.com> writes:

> subversion/libsvn_wc/adm_ops.c: In function `svn_wc_delete':
> subversion/libsvn_wc/adm_ops.c:645: warning: `was_deleted' might be used
> uninitialized in this function
>
> subversion/clients/cmdline/status.c: In function `print_status':
> subversion/clients/cmdline/status.c:61: warning: `ood_status' might be
> used uninitialized in this function

By inspection one can see that there is no code path that uses the
variables if they have not been initialized. I suppose we could
change the code to make the compiler quiet, but the warnings do not
indicate a bug. I guess the warning uses "might" because it does not
always get it right.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Dec 14 15:57:06 2002

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.