This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] hurd: -Werror


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]