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: Clark Cox <email@hidden>
- Date: Sun, 15 Nov 2009 07:40:44 -0800
On Sat, Nov 14, 2009 at 9:30 PM, Steve Mills <email@hidden> wrote:
> 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,
I have never encountered a situation where this warning is generated
that doesn't also generate another error or warning. Any problems in
your code that it shows are *already* shown to you by the other
messages.
> 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.
--
Clark S. Cox III
email@hidden
_______________________________________________
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