Re: receiving: "warning: ignoring #pragma mark"
Re: receiving: "warning: ignoring #pragma mark"
- Subject: Re: receiving: "warning: ignoring #pragma mark"
- From: Stuart Malin <email@hidden>
- Date: Fri, 30 Jan 2009 12:04:59 -1000
On Jan 30, 2009, at 11:25 AM, Jason Foreman wrote: On Fri, Jan 30, 2009 at 3:12 PM, Stuart Malin < email@hidden> wrote: I know this is not ordinary use of Xcode, but was hoping someone who
understands the compiler might be able to inform as to why -Wall might be
causing the compiler to warn on #pragma mark in one environment, and not in
the other. And if there is some way to avoid the warning.
I believe #pragma mark is an Apple extension, so it is probably just not included in the Cocotron cross compiler. You could see about including the feature in Cocotron, or might try -Wno-pragmas. Another options is to wrap the marks in #if 0 blocks, but that's tedious and ugly.
Thanks for the suggestions and direction.
Build Settings for Warnings has an entry "Unknown Pragma" (GCC_WARN_UNKNOWN_PRAGMAS); but this is not checked. Hmmm.
Yes, just read that #pragma mark is a Darwin specific pragma, see:
Tried your suggestion of setting -Wno-pragmas. This did not eliminate the warnings. Ahhh -- what is needed is: -Wno-unknown-pragmas
Unfortunately, this disables a warning about *any* unknown pragma, so now I am wondering if there might be a way to #define "pragma mark" as a no-op...
|
_______________________________________________
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