• 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: 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

  • Follow-Ups:
    • Re: Stupid "warning: declaration of 'index' shadows a global declaration"
      • From: Clark Cox <email@hidden>
  • Prev by Date: Re: Xcode not responding when running unit tests
  • Next by Date: Re: Stupid "warning: declaration of 'index' shadows a global declaration"
  • Previous by thread: Re: Xcode not responding when running unit tests
  • Next by thread: Re: Stupid "warning: declaration of 'index' shadows a global declaration"
  • Index(es):
    • Date
    • Thread