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

Re: Turning off spurious C warning in XCode ?


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

Le 22 nov. 03, ` 18:47, James Mastro a icrit :

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.

Under the Build tab in the Target info, there's an OTHER_CFLAGS line. Put "-Wshadow" on it. (Assuming shadow is the correct compiler flag for this. It sounds like it.)




Sorry for the vague statement: -Wshadow is the correct flag, I think, to turn the warning ON. I don't think there is a flag to turn it OFF, but probably XCode does turn it on some other way (by -Wall or something). Anyway, I tried, with no success :-(


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: Graeme Mathieson <email@hidden>
    • Re: Turning off spurious C warning in XCode ?
      • From: Glen Low <email@hidden>
References: 
 >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: Re: Groups, shell scripts, yacc
  • Next by Date: Re: Turning off spurious C warning in XCode ?
  • Previous by thread: Re: Turning off spurious C warning in XCode ?
  • Next by thread: Re: Turning off spurious C warning in XCode ?
  • Index(es):
    • Date
    • Thread