Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jun 2009 11:00:56 +0400
From:      Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To:        FreeBSD Tinderbox <tinderbox@freebsd.org>
Cc:        amd64@freebsd.org, hrs@freebsd.org, current@freebsd.org
Subject:   Re: [head tinderbox] failure on amd64/amd64
Message-ID:  <8LPG99US2/4EsGlonyfMSkDb40o@XX1fo6zQUfC4h0jjRC6IBz3oNH4>
In-Reply-To: <20090608025715.499087302F@freebsd-current.sentex.ca>
References:  <20090608025715.499087302F@freebsd-current.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Sun, Jun 07, 2009 at 10:57:15PM -0400, FreeBSD Tinderbox wrote:
> TB --- 2009-06-08 00:40:00 - tinderbox 2.6 running on freebsd-current.sentex.ca
> >>> stage 3.2: building everything
> [...]
> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -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 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror -pg -mprofiler-epilogue /src/sys/net/if_gif.c
> cc1: warnings being treated as errors
> /src/sys/net/if_gif.c: In function 'gif_ioctl':
> /src/sys/net/if_gif.c:920: warning: cast to pointer from integer of different size

Looks like that
-----
		ifr->ifr_data = (caddr_t)(size_t)options;
-----
will be more correct and will disable this warning -- it will convert
u_int to the proper type that will be able to carry addresses for the
given platform.
-- 
Eygene
 _                ___       _.--.   #
 \`.|\..----...-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' `         ,       __.--'      #  to read the on-line manual
 )/' _/     \   `-_,   /            #  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
     _.-'_./   {_.'   ; /           #    -- FreeBSD Developers handbook
    {_.-``-'         {_/            #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8LPG99US2/4EsGlonyfMSkDb40o>