Re: What to do about "clobbered by `longjmp' or `vfork'" warnings?
Re: What to do about "clobbered by `longjmp' or `vfork'" warnings?
- Subject: Re: What to do about "clobbered by `longjmp' or `vfork'" warnings?
- From: j o a r <email@hidden>
- Date: Wed, 3 Dec 2003 14:02:22 +0100
On 2003-12-03, at 12.30, Alastair Houghton wrote:
> Having said that, you should probably fix your code; you don't
> necessarily have to declare your variables volatile... it's normally
> enough just to change their scope.
As an example, how would I fix it in this case ("image" is the variable
being possibly clobbered)?
- (NSImage*)imageForTitle:(NSString*)string
{
NSImage *image = [titles objectForKey:string];
if( !image )
{
NS_DURING;
if(( image = [self imageWithTitle:string] ))
[self setImage:image forTitle:string];
NS_HANDLER;
if( [[localException name] isEqualToString:NSImageCacheException] )
image = nil;
else
[localException raise];
NS_ENDHANDLER;
}
return image;
}
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.