• 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: receiving: "warning: ignoring #pragma mark"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: 
http://gcc.gnu.org/onlinedocs/gcc/Darwin-Pragmas.html#Darwin-Pragmas

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

References: 
 >receiving: "warning: ignoring #pragma mark" (From: Stuart Malin <email@hidden>)
 >Re: receiving: "warning: ignoring #pragma mark" (From: Jason Foreman <email@hidden>)

  • Prev by Date: Re: receiving: "warning: ignoring #pragma mark"
  • Next by Date: Re: xcode 3.0 10.4u to 10.5 SDK
  • Previous by thread: Re: receiving: "warning: ignoring #pragma mark"
  • Next by thread: 10.4 --> 10.5
  • Index(es):
    • Date
    • Thread