• 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
Suppressing warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suppressing warning


  • Subject: Suppressing warning
  • From: Jeff LaMarche <email@hidden>
  • Date: Thu, 17 Apr 2008 16:50:07 -0400

When creating a synchronized accessor, like this (simple example):

- (NSString *)foo
{
@synchronized(foo)
{
return foo;
}
}

Is there a way to suppress the "control reaches end of non-void function" warning, but without disabling that warning in general, just for the specific instance? Is there a #pragma or something that will suppress it?

Thanks,
Jeff
 _______________________________________________
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:
    • property-level locking (was Re: Suppressing warning)
      • From: Chris Hanson <email@hidden>
    • Re: Suppressing warning
      • From: "B.J. Buchalter" <email@hidden>
  • Prev by Date: Re: Unable to debug custom executable
  • Next by Date: Re: Suppressing warning
  • Previous by thread: Re: Unable to debug custom executable
  • Next by thread: Re: Suppressing warning
  • Index(es):
    • Date
    • Thread