Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2013 12:56:32 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        FreeBSD Tinderbox <tinderbox@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: [head tinderbox] failure on ia64/ia64
Message-ID:  <20130426085632.GR76816@FreeBSD.org>
In-Reply-To: <201304252213.r3PMDXW1030467@freebsd-current.sentex.ca>
References:  <201304252213.r3PMDXW1030467@freebsd-current.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 25, 2013 at 10:13:33PM +0000, FreeBSD Tinderbox wrote:
F> cc -c -O2 -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  -Wmissing-include-dirs -fdiagnostics-show-option   -nostdinc  -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ia64/libuwx/src -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -fpic -ffreestanding -Werror  /src/sys/netinet/ip_output.c
F> cc1: warnings being treated as errors
F> /src/sys/netinet/ip_output.c: In function 'ip_output':
F> /src/sys/netinet/ip_output.c:625: warning: cast discards qualifiers from pointer target type
F> /src/sys/netinet/ip_output.c:659: warning: cast discards qualifiers from pointer target type

So, the r249894 appeared buildable on clang, but not on gcc.

What I can do is to change if_output declaration to use pointer to a constant
sockaddr. The change requires editing a lot, and changes API. However this is
a change in a right direction.

Any objections?

-- 
Totus tuus, Glebius.



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