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

Inconsistent "might be used uninitialized in this function" warnings

From: Blair Zajac <blair_at_orcaware.com>
Date: 2002-12-13 22:46:01 CET

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?

The compile statements are very similar:

Linux:

/bin/sh /tmp/svn/libtool --silent --mode=compile gcc -DLINUX=2
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -g -O2 -Wall -pthread -DNEON_ZLIB -DNEON_SSL
-I./subversion/include -I. -I/tmp/svn/neon/src
-I/opt/i386-linux/db-4.1/include
-I/opt/i386-linux/installed/apache-2.0-cvs-2002121300/include
-I/opt/i386-linux/installed/apache-2.0-cvs-2002121300/include
-I/opt/i386-linux/db-4.1/include -o subversion/libsvn_wc/adm_ops.lo -c
subversion/libsvn_wc/adm_ops.c

IRIX:

/bin/sh /tmp/svn/libtool --silent --mode=compile gcc
-D_POSIX_THREAD_SAFE_FUNCTIONS -g -O2 -Wall
-I/opt/mips-irix/openssl/include -DNEON_ZLIB -DNEON_SSL
-I./subversion/include -I. -I/tmp/svn/neon/src
-I/opt/mips-irix/db-4.1/include -I/tmp/svn/apr/include
-I/tmp/svn/apr-util/include -I/opt/mips-irix/db-4.1/include
-I/tmp/svn/apr-util/xml/expat/lib -o subversion/libsvn_wc/adm_ops.lo
-c subversion/libsvn_wc/adm_ops.c

The warnings look valid and somebody more familar with the code may
want to take a look.

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 22:46:21 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.