#pragma to suppress a warning message
#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