• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stupid "warning: declaration of 'index' shadows a global declaration"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Stupid "warning: declaration of 'index' shadows a global declaration"
      • From: Steve Mills <email@hidden>
    • Re: Stupid "warning: declaration of 'index' shadows a global declaration"
      • From: Jens Alfke <email@hidden>
    • Re: Stupid "warning: declaration of 'index' shadows a global declaration"
      • From: Keary Suska <email@hidden>
References: 
 >Re: Stupid "warning: declaration of 'index' shadows a global declaration" (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Stupid "warning: declaration of 'index' shadows a global declaration"
  • Next by Date: Re: Stupid "warning: declaration of 'index' shadows a global declaration"
  • Previous by thread: Re: Stupid "warning: declaration of 'index' shadows a global declaration"
  • Next by thread: Re: Stupid "warning: declaration of 'index' shadows a global declaration"
  • Index(es):
    • Date
    • Thread