This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10229] New: sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings
- From: "ldv at altlinux dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Jun 2009 14:37:24 -0000
- Subject: [Bug libc/10229] New: sysdeps/{i386,x86_64}/bits/select.h -Wconversion warnings
- Reply-to: sourceware-bugzilla at sourceware dot org
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.