[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: Blair Zajac <blair_at_orcaware.com>
Date: 2002-12-13 23:31:06 CET

Matt Kraai wrote:
>
> On Fri, Dec 13, 2002 at 01:46:01PM -0800, Blair Zajac wrote:
> > This is really odd. With gcc 3.2.1 on IRIX, I'm getting the following
> > two warnings:
> >
> > 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
> >
> > Using gcc 3.2.1 on RedHat 8.0 linux, I get no warnings. Anybody else
> > seeing these warnings? Anybody know why we'd get different warnings
> > with the same compiler?
>
> GCC generates these warnings after generating RTL, which can express
> the same operation differently on different targets. Thus, it may
> discover that the variables are properly initialized on some targets
> but not others.

Thanks, didn't know that.

Best,
Blair

-- 
Blair Zajac <blair@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 13 23:31:27 2002

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