Re: XCode 1.5, No Warning for Missing Return Value
Re: XCode 1.5, No Warning for Missing Return Value
- Subject: Re: XCode 1.5, No Warning for Missing Return Value
- From: Scott Tooker <email@hidden>
- Date: Tue, 26 Oct 2004 11:18:50 -0700
My guess is that you had -Wmost set at one point in your projec (which
probably turns on this warning), but then removed it?
In any case, it appears that we don't provide UI in the build settings
pane for -Wreturn-type, so I'd file a bug asking for it.
Scott
On Oct 23, 2004, at 1:05 PM, Kevin Patfield wrote:
Replying to my own posting, I've subsequently found that including the
flag:
-Wreturn-type
in the entry "Other Warning Flags" restores the correct behavior. I
also found that I had to set the flag for "Unused Variables" to
restore the previous behavior of that warning.
Does anybody know what's going on and how to avoid having to do this
for every project from now on?
On Oct 22, 2004, at 11:26 PM, Kevin Patfield wrote:
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:
40aztecfreenet.org
This email sent to email@hidden
Kevin Patfield, Phoenix, Arizona
_______________________________________________
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