public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10229] New: sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings
@ 2009-06-02 14:37 ldv at altlinux dot org
  2009-06-14 23:11 ` [Bug libc/10229] " drepper at redhat dot com
  2009-06-15 21:25 ` ldv at altlinux dot org
  0 siblings, 2 replies; 3+ messages in thread
From: ldv at altlinux dot org @ 2009-06-02 14:37 UTC (permalink / raw)
  To: glibc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/10229] sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings
  2009-06-02 14:37 [Bug libc/10229] New: sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings ldv at altlinux dot org
@ 2009-06-14 23:11 ` drepper at redhat dot com
  2009-06-15 21:25 ` ldv at altlinux dot org
  1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2009-06-14 23:11 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-06-14 23:10 -------
Fixed in the current git version.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/10229] sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings
  2009-06-02 14:37 [Bug libc/10229] New: sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings ldv at altlinux dot org
  2009-06-14 23:11 ` [Bug libc/10229] " drepper at redhat dot com
@ 2009-06-15 21:25 ` ldv at altlinux dot org
  1 sibling, 0 replies; 3+ messages in thread
From: ldv at altlinux dot org @ 2009-06-15 21:25 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From ldv at altlinux dot org  2009-06-15 21:25 -------
Thanks.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED


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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-15 21:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-02 14:37 [Bug libc/10229] New: sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings ldv at altlinux dot org
2009-06-14 23:11 ` [Bug libc/10229] " drepper at redhat dot com
2009-06-15 21:25 ` ldv at altlinux dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).