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

Re: Suppressing warning


  • Subject: Re: Suppressing warning
  • From: Fred Leboucher <email@hidden>
  • Date: Fri, 18 Apr 2008 07:12:35 +0200

In this particular case, it is indeed a nice way to suppress the warning, but what if the function is looking that way :

int foo()
{
	_asm {
		// do something complicated...
		mov eax, something
	}
}

Then my last mov is indeed the return, but gcc doesn't identify it that way, and putting a return after that would just override my actual return value...

On Apr 17, 2008, at 10:53 PM, B.J. Buchalter wrote:


On Apr 17, 2008, at 4:50 PM, Jeff LaMarche wrote:

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

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

You could put a

return NULL;

after the @synchronized

block. It should never be reached...

B.J. Buchalter
Metric Halo
http://www.mhlabs.com
	


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40free.fr


This email sent to email@hidden


_______________________________________________ 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: Suppressing warning
      • From: Jonas Maebe <email@hidden>
References: 
 >Suppressing warning (From: Jeff LaMarche <email@hidden>)
 >Re: Suppressing warning (From: "B.J. Buchalter" <email@hidden>)

  • Prev by Date: Re: How to configure Subversion to work with Xcode?
  • Next by Date: Re: double cast to unsigned int gets different results on PPC
  • Previous by thread: Re: Suppressing warning
  • Next by thread: Re: Suppressing warning
  • Index(es):
    • Date
    • Thread