This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
FD_SET, FD_CLR and FD_ISSET produce compiler warnings
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sources dot redhat dot com
- Date: Tue, 05 May 2009 11:19:34 +0200
- Subject: FD_SET, FD_CLR and FD_ISSET produce compiler warnings
Hi,
according to POSIX we have:
void FD_CLR(int fd, fd_set *fdset);
int FD_ISSET(int fd, fd_set *fdset);
void FD_SET(int fd, fd_set *fdset);
They are implemented in newlib/libc/include/sys/types.h using macros which
produce an integer conversion warning because NFDBITS has an unsigned integer type.
Have a nice day!
--
Sebastian Huber, Embedded Brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.