Re: clang: no warning when failing to return a value
Re: clang: no warning when failing to return a value
- Subject: Re: clang: no warning when failing to return a value
- From: Luke the Hiesterman <email@hidden>
- Date: Wed, 2 Sep 2009 17:48:25 -0700
Try a clean build or Build Results->All Results. If the relevant file
wasn't built in the last build, you won't see the warning.
Luke
On Sep 2, 2009, at 5:45 PM, Rick Mann wrote:
That's what I'm saying. I thought it should, but I'm not seeing a
warning.
On Sep 2, 2009, at 17:26:02, Luke the Hiesterman wrote:
Doesn't the compiler do that?
Luke
On Sep 2, 2009, at 5:23 PM, Rick Mann wrote:
I implemented this:
- (BOOL)
control: (NSControl*) inControl
textView:(NSTextView*) inTextView
doCommandBySelector: (SEL) inCommand
{
NSLog(@"FooSEL %s", sel_getName(inCommand));
}
And realized that clang is not warning me that I failed to return
a value. Shouldn't it?
--
Rick
_______________________________________________
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
_______________________________________________
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