[PATCH] hurd: -Werror
Samuel Thibault
samuel.thibault@gnu.org
Sun Feb 8 04:24:00 GMT 2015
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
More information about the Libc-alpha
mailing list