__bswap_constant_16 not compiled when -Werror -Wsign-conversion is given (32bit LE ARM)

Andreas Jaeger aj@suse.com
Tue May 21 13:48:00 GMT 2013


On 05/21/2013 09:22 AM, Edward Jee wrote:
> Hi Andreas, thanks a lot for your response.
> That change (BZ #12194) uses 0xff for sysdeps/s390/bits/byteswap.h .
> But uses 0xffu bits/byteswap.h .
> In my platform I use bits/byteswap.h . And, it seems that ((x) >> 8)
> promotes the data to signed value. So (((x) >> 8) && 0xffu) seems to
> fail when -Werror -Wsign-conversion .
> I can't understand very well why bits/byteswap.h uses 0xffu , while
> most of the other platform-dependent byteswap.h use 0xff.

Edward, please file a bug report and let us look closer at this,

Andreas
-- 
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
    GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Libc-help mailing list