[Bug libc/10229] New: sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings
ldv at altlinux dot org
sourceware-bugzilla@sourceware.org
Tue Jun 2 14:37:00 GMT 2009
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.
More information about the Glibc-bugs
mailing list