Subject: Re: -current RAIDframe on alpha compile fails
To: Aaron J. Grier <agrier@poofygoof.com>
From: Greg Oster <oster@cs.usask.ca>
List: current-users
Date: 02/12/2000 10:06:38
"Aaron J. Grier" writes:
> supped Feb 11 10:11:06 2000 (PST)
>
> cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-ari
> th -Wno-main -mno-fp-regs -I. -I../../../../arch -I../../../.. -nostdinc -I..
> /../../../../crypto-us/sys -I../../../../../gnu/sys -DDIAGNOSTIC -DIPSEC_DEBU
> G -DLKM -DRND_COM -DMAXUSERS=32 -D_KERNEL -Dalpha -c ../../../../dev/raidfra
> me/rf_paritylogging.c
> cc1: warnings being treated as errors
> ../../../../dev/raidframe/rf_paritylogging.c: In function `rf_ConfigureParity
> Logging':
> ../../../../dev/raidframe/rf_paritylogging.c:204: warning: int format, differ
> ent type arg (arg 2)
> ../../../../dev/raidframe/rf_paritylogging.c:335: warning: int format, differ
> ent type arg (arg 2)
> ../../../../dev/raidframe/rf_paritylogging.c:346: warning: int format, differ
> ent type arg (arg 2)
> ../../../../dev/raidframe/rf_paritylogging.c:404: warning: int format, differ
> ent type arg (arg 2)
> ../../../../dev/raidframe/rf_paritylogging.c:415: warning: int format, differ
> ent type arg (arg 2)
> *** Error code 1
>
> Stop.
>
> Adding parenthesis to make the casts apply to the whole expression seems
> to fix it.
Ok, then that's how I'll fix it :) (These are just "debugging" printfs, and
really don't even need to be there.. )
> I'm curious why this is happening -- doesn't sizeof() return
> an int?
Apparently not on an alpha box..
I've just checked in the fix. Thanks for reporting this..
Later...
Greg Oster