| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| From: | "Christian Jullien" <c DOT jullien AT m6net DOT fr> |
| To: | <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | FD_ZERO Warnings [AGAIN] |
| Date: | Tue, 14 Nov 2000 09:39:03 +0100 |
| Message-ID: | <IMEDKJHLFGIGPDAKFBKGAENLCBAA.c.jullien@m6net.fr> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) |
| Importance: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
I agree with the size_t definition of i but not to the name 'i'.
in the following code:
void
foo()
{
int i;
FD_ZERO( &myfds );
}
gcc warns using: gcc -Wshadow
I hate warnings but I add more and more options in my code to try to get new
one.
I think that ISO/IEC 9899 reserve all symbols starting with '_' (i.e. _i is
not allowed for user -> me).
the FD_ZERO definition shoud be with _i or __i (like __tmp in the
definition) but not with i.
Regards.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |