This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] hurd: -Werror
- From: Samuel Thibault <samuel dot thibault at gnu dot org>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: libc-alpha at sourceware dot org, bug-hurd at gnu dot org
- Date: Sun, 8 Feb 2015 05:24:36 +0100
- Subject: Re: [PATCH] hurd: -Werror
- Authentication-results: sourceware.org; auth=none
- References: <20150207220716 dot GW3023 at type dot youpi dot perso dot aquilenet dot fr> <20150208022031 dot 4DFF72C3B2F at topped-with-meat dot com>
Roland McGrath, le Sat 07 Feb 2015 18:20:31 -0800, a écrit :
> Are you using --disable-werror for some reason?
Yes: we have a lot of warnings related with mig:
/usr/src/glibc/build/mach/RPC_default_pager_objects.c: In function '__default_pager_objects':
/usr/src/glibc/build/mach/RPC_default_pager_objects.c:188:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*objects = *((default_pager_object_t **)OutP->objects);
^
/usr/src/glibc/build/mach/RPC_default_pager_objects.c:215:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*ports = *((mach_port_t **)OutP->ports);
^
devstream.c:44:46: warning: passing argument 4 of 'device_write_inband' discards 'const' qualifier from pointer target type
if (err = device_write_inband (dev, 0, 0, p, thiswrite, &wrote))
In file included from devstream.c:22:0:
/usr/src/glibc/build/mach/device/device.h:223:15: note: expected 'char *' but argument is of type 'const char *'
kern_return_t device_write_inband
^
Samuel