• 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: XCode 1.5, No Warning for Missing Return Value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 1.5, No Warning for Missing Return Value


  • Subject: Re: XCode 1.5, No Warning for Missing Return Value
  • From: Kevin Patfield <email@hidden>
  • Date: Sat, 23 Oct 2004 13:05:32 -0700

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:
email@hidden


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


  • Follow-Ups:
    • Re: XCode 1.5, No Warning for Missing Return Value
      • From: Scott Tooker <email@hidden>
References: 
 >XCode 1.5, No Warning for Missing Return Value (From: Kevin Patfield <email@hidden>)

  • Prev by Date: Re: Shell Script Build Phase troubles
  • Next by Date: Re: XCode makes easy things hard...
  • Previous by thread: XCode 1.5, No Warning for Missing Return Value
  • Next by thread: Re: XCode 1.5, No Warning for Missing Return Value
  • Index(es):
    • Date
    • Thread