• 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
#pragma to suppress a warning message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#pragma to suppress a warning message


  • Subject: #pragma to suppress a warning message
  • From: Jay Boyer <email@hidden>
  • Date: Wed, 16 Sep 2009 18:09:57 -0700

I have three related questions. I’d like to suppress a particular warning message in the source file. In gnu it could be done as follows:

#pragma Warnings(Off)
               NSArray *languages = [NSLocale preferredLanguages];
#pragma Warnings(On)

Is there a way to do this in xcode with #pragma?

Also, can anyone point me to a list of the #pragma’s for xcode?

Finally, I am doing this because the preferredLanguages method is specified to be an OS 10.5+ method and the project I am working on is being built on the 10.4 SDK. Nonetheless, on the 10.4 machine where I tested this, the method works. Does anybody know what the story is with this method and 10.4? Is this method actually supported by 10.4 or is it something that happens to be supported if certain other software has been installed on a 10.4 platform?

Thanks,

Jay_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: #pragma to suppress a warning message
      • From: Chris Hanson <email@hidden>
    • Re: #pragma to suppress a warning message
      • From: Scott Thompson <email@hidden>
    • Re: #pragma to suppress a warning message
      • From: BJ Homer <email@hidden>
  • Prev by Date: Re: debugging strategy
  • Next by Date: Re: #pragma to suppress a warning message
  • Previous by thread: Re: CocoaDVDPlayer
  • Next by thread: Re: #pragma to suppress a warning message
  • Index(es):
    • Date
    • Thread