Subject: -current RAIDframe on alpha compile fails
To: None <current-users@netbsd.org>
From: Aaron J. Grier <agrier@poofygoof.com>
List: current-users
Date: 02/11/2000 20:26:48
supped Feb 11 10:11:06 2000 (PST)

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -mno-fp-regs -I. -I../../../../arch -I../../../.. -nostdinc -I../../../../../crypto-us/sys -I../../../../../gnu/sys -DDIAGNOSTIC -DIPSEC_DEBUG -DLKM -DRND_COM -DMAXUSERS=32 -D_KERNEL -Dalpha  -c ../../../../dev/raidframe/rf_paritylogging.c
cc1: warnings being treated as errors
../../../../dev/raidframe/rf_paritylogging.c: In function `rf_ConfigureParityLogging':
../../../../dev/raidframe/rf_paritylogging.c:204: warning: int format, different type arg (arg 2)
../../../../dev/raidframe/rf_paritylogging.c:335: warning: int format, different type arg (arg 2)
../../../../dev/raidframe/rf_paritylogging.c:346: warning: int format, different type arg (arg 2)
../../../../dev/raidframe/rf_paritylogging.c:404: warning: int format, different type arg (arg 2)
../../../../dev/raidframe/rf_paritylogging.c:415: warning: int format, different type arg (arg 2)
*** Error code 1

Stop.

Adding parenthesis to make the casts apply to the whole expression seems
to fix it.  I'm curious why this is happening -- doesn't sizeof() return
an int?

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier@poofygoof.com
  "Time Correct function allows automatically correcting slight variation
   of your key touching manner."  --  Roland MSQ-700 manual