Re: Stupid "warning: declaration of 'index' shadows a global declaration"
Re: Stupid "warning: declaration of 'index' shadows a global declaration"
- Subject: Re: Stupid "warning: declaration of 'index' shadows a global declaration"
- From: Steve Mills <email@hidden>
- Date: Sat, 14 Nov 2009 23:30:20 -0600
On Nov 14, 2009, at 14:09:54, Jens Alfke wrote:
> This is why I never turn on that warning ˜ due to namespace pollution
> by the standard C library and POSIX APIs, too many common variable
> names happen to shadow some function like 'index' or 'time' or 'open'.
I still insist on using it because it *does* show problems in your own code, and it *can* be a valid warning that shows you possible real logic errors. But yeah, it does get annoying when building other people's code, like there are tons of them in boost and/or gil.
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden