Subject: Re: error compiling raidframe on sparc
To: None <kurt.schreiner@Uni-Mainz.DE>
From: Greg Oster <oster@cs.usask.ca>
List: port-sparc
Date: 11/18/1998 09:16:29
Kurt Schreiner writes:
> 
> hi,
> 
> just configured a new kernel with raidframe for my ss20. make depend
> is ok, but compiling gives:
> 
> cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -mno-fpu -I. -
> I../../../../arch -I../../../.. -nostdinc -DSUN4M -DRASTERCONSOLE -DLKM -DDIA
> GNOSTIC -DCOMPAT_43 -DMAXUSERS=32 -D_KERNEL  -c ../../../../dev/raidframe/rf_
> cvscan.c
> cc1: warnings being treated as errors
> ../../../../dev/raidframe/rf_cvscan.c: In function `rf_CvscanPromote':
> ../../../../dev/raidframe/rf_cvscan.c:416: warning: `trailer' might be used u
> ninitialized in this function
> *** Error code 1
> 
> Stop.
> 
> this is from source supped after yesterdays supscan. I'll resup in an
> hour or so (after next supscan) an try again...

I've just checked in a fix.  It'll be available after the next supscan.. 
(If you can't wait for that, you can just change:

    RF_DiskQueueData_t *trailer, *tmp = hdr->burner, *tlist = NULL;

to:

    RF_DiskQueueData_t *trailer = NULL, *tmp = hdr->burner, *tlist = NULL;

in rf_CvscanPromote() in rf_cvscan.c.)

Thanks for the report..

Later...

Greg Oster