• 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: Sun, 1 Feb 2009 17:53:16 -1000


On Feb 1, 2009, at 10:07 AM, Steve Checkoway wrote:

On Jan 30, 2009, at 2:04 PM, Stuart Malin wrote:

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...


Perhaps in the environment that supports the #pragma mark,
#define PragmaMark(mark) _Pragma( "mark " #mark )
and in the other environment
#define PragmaMark(mark)

Then use PragmaMark(--some-notation-or-other--).

Thanks for thinking about this Steve. Your solution is intriguing, but misses the mark (pun intended) because the pragma mark is something that Xcode recognizes. I suspect that on Darwin (where it is defined), lines that begin with #pragma mark are turned into nothing by some pre- processor action. Anyway, the point is, the source code file needs to Have #pragma mark visible without the action of the pre-processor so that Xcode can "see" it.


_______________________________________________
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


  • Follow-Ups:
    • Re: receiving: "warning: ignoring #pragma mark"
      • From: Cédric Luthi <email@hidden>
  • Prev by Date: Re: getting symbol not found _IOSleep
  • Next by Date: Re: getting symbol not found _IOSleep
  • Previous by thread: Re: receiving: "warning: ignoring #pragma mark"
  • Next by thread: Re: receiving: "warning: ignoring #pragma mark"
  • Index(es):
    • Date
    • Thread