• 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
Turning off spurious C warning in XCode ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Turning off spurious C warning in XCode ?


  • Subject: Turning off spurious C warning in XCode ?
  • From: Thomas Lachand-Robert <email@hidden>
  • Date: Sat, 22 Nov 2003 18:13:12 +0100

Is there any way to turn off the warning about local declaration of variables which hides global variables in XCode?
For a class that contains a member named "session", I do the following in some method:


id session = [self session];

and get this spurious warning, which doesn't make sense here.

There is a checkbox about "hidden local variables" in the build settings, but it doesn't work for this.
I think the gcc option is -Wshadow, but again I don't know how to turn it off in XCode.


Thanks,

Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Turning off spurious C warning in XCode ?
      • From: Thomas Lachand-Robert <email@hidden>
    • Re: Turning off spurious C warning in XCode ?
      • From: James Mastro <email@hidden>
  • Prev by Date: Xcode incremental build problem
  • Next by Date: Re: Turning off spurious C warning in XCode ?
  • Previous by thread: Re: Xcode incremental build problem
  • Next by thread: Re: Turning off spurious C warning in XCode ?
  • Index(es):
    • Date
    • Thread