Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2008 16:45:24 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: [head tinderbox] failure on i386/i386
Message-ID:  <200801151645.24261.jhb@freebsd.org>
In-Reply-To: <20080115205231.GF29422@bunrab.catwhisker.org>
References:  <20080115172200.4332F73039@freebsd-current.sentex.ca> <20080115205231.GF29422@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801151645.24261.jhb>