This is the mail archive of the glibc-bugs@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]

[Bug libc/10229] New: sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings


gcc-4.4 -Wconversion produces warnings in sysdeps/i386/bits/select.h and
sysdeps/x86_64/bits/select.h header files.

For example, on i386:
$ printf '%s\n%s\n' '#include <sys/select.h>' 'int f(fd_set *s, int d) {return
FD_ISSET(d, s);}' |gcc -Wconversion -c -xc -
<stdin>: In function ?f?:
<stdin>:2: warning: conversion to ?unsigned int? from ?int? may change the sign
of the result
<stdin>:2: warning: conversion to ?unsigned int? from ?int? may change the sign
of the result
$ printf '%s\n%s\n' '#include <sys/select.h>' 'int f(fd_set *s, unsigned int d)
{return FD_ISSET(d, s);}' |gcc -Wconversion -c -xc -
<stdin>: In function ?f?:
<stdin>:2: warning: conversion to ?unsigned int? from ?int? may change the sign
of the result

That is, FD_ISSET() produces warnings regardless of integer type.

-- 
           Summary: sysdeps/{i386,x86_64}/bits/select.h -Wconversion
                    warnings
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: ldv at altlinux dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10229

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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