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

Re: libsvn_wc/update_editor.c gcc 3.1 compiler warning

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-06-27 05:32:08 CEST

Blair Zajac <blair@orcaware.com> writes:
> On svn revision 2344:
>
> subversion/libsvn_wc/update_editor.c
> subversion/libsvn_wc/update_editor.c: In function `svn_wc_install_file':
> subversion/libsvn_wc/update_editor.c:1219: warning: `txtb' might be
> used uninitialized in this function
> subversion/libsvn_wc/update_editor.c:1219: warning: `tmp_txtb' might be
> used uninitialized in this function

According to the code flow, it can't happen, fortunately.

If you want to commit initializations to make the warning go away, I
think that would be fine (just make sure to state in a comment that
the inits are for placating a compiler, so no one mistakenly thinks
that the code depends on them :-) ).

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 27 05:40:24 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.