Re: [head tinderbox] failure on i386/i386

From: John Baldwin <jhb_at_freebsd.org>
Date: Tue, 15 Jan 2008 16:45:24 -0500
On Tuesday 15 January 2008 03:52:31 pm David Wolfskill wrote:
> On Tue, Jan 15, 2008 at 12:22:00PM -0500, FreeBSD Tinderbox wrote:
> > ...
> > 
cc -c   -std=c99  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include 
opt_global.h -fno-common -finline-limit=8000 --param 
inline-unit-growth=100 --param 
large-function-growth=1000 -DGPROF -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror -pg -mprofiler-epilogue /src/sys/dev/cxgb/cxgb_sge.c
> > cc1: warnings being treated as errors
> > /src/sys/dev/cxgb/cxgb_sge.c: In function 't3_encap':
> > /src/sys/dev/cxgb/cxgb_sge.c:1254: warning: format '%ld' expects 
type 'long int', but argument 2 has type 'unsigned int'
> > *** Error code 1
> > 
> > Stop in /obj/src/sys/LINT.
> > *** Error code 1
> > 
> > Stop in /src.
> > *** Error code 1
> > 
> > Stop in /src.
> 
> Attached is the hack I used to get through this, in case it helps
> someone.
> 
> Caveat:  I don't use cxgb(4) myself, so I haven't actually tested the
> result.

I think '%zd' may be the best actually since PIO_LEN is a constant minus a 
size_t.

-- 
John Baldwin
Received on Tue Jan 15 2008 - 21:11:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:26 UTC