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

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


  • Follow-Ups:
    • Re: 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: Internal Error
  • Previous by thread: Re: Shell Script Build Phase troubles
  • Next by thread: Re: XCode 1.5, No Warning for Missing Return Value
  • Index(es):
    • Date
    • Thread