• 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: clang: no warning when failing to return a value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: clang: no warning when failing to return a value
      • From: Rick Mann <email@hidden>
References: 
 >clang: no warning when failing to return a value (From: Rick Mann <email@hidden>)
 >Re: clang: no warning when failing to return a value (From: Luke the Hiesterman <email@hidden>)
 >Re: clang: no warning when failing to return a value (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: clang: no warning when failing to return a value
  • Next by Date: Unit tests hanging Xcode on Snow Leopard
  • Previous by thread: Re: clang: no warning when failing to return a value
  • Next by thread: Re: clang: no warning when failing to return a value
  • Index(es):
    • Date
    • Thread