[head tinderbox] failure on sparc64/sun4v

Sean C. Farley scf at FreeBSD.org
Tue Nov 4 20:23:16 PST 2008

On Tue, 4 Nov 2008, FreeBSD Tinderbox wrote:


> cc -O -pipe  -DLIBC_SCCS -DINET6 -I/src/lib/libutil -I/src/lib/libutil/../libc/gen/ -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /src/lib/libutil/gr_util.c
> cc1: warnings being treated as errors
> /src/lib/libutil/gr_util.c: In function 'gr_dup':
> /src/lib/libutil/gr_util.c:154: warning: cast increases required alignment of target type
> *** Error code 1

Does the following patch fix this warning (due to r184635) correctly?
It should align the (char **) pointer correctly within the allocated
buffer.  The (void *) cast is necessary because gcc is not able to
detect that the alignment was fixed.  Better solutions are welcome.


scf at FreeBSD.org

More information about the freebsd-sparc64 mailing list