XCode 1.5, No Warning for Missing Return Value
XCode 1.5, No Warning for Missing Return Value
- Subject: XCode 1.5, No Warning for Missing Return Value
- From: Kevin Patfield <email@hidden>
- Date: Fri, 22 Oct 2004 23:26:15 -0700
Since upgrading to XCode 1.5 I notice that if a function lacks a return
value I don't get the warning "Control reaches end of non-void
function". I'm not talking about the warning not being in the errors
and warnings group, the error is totally missing and I get a "build
succeeded" followed, of course, by a nasty crash when I try to execute!
On the other hand, I do correctly get warnings if void functions try to
return a value.
I've only just noticed this (I guess I must not make this error very
often!) but I'm pretty sure it corresponds with my starting to use
XCode 1.5. The strange thing is XCode 1.5 does correctly generate this
warning for projects created with the previous version so it must be
some missing setting on the projects created by XCode 1.5, though they
look the same.
_______________________________________________
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