• 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: Why don't I get "control reaches end of non-void function" warnings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why don't I get "control reaches end of non-void function" warnings?


  • Subject: Re: Why don't I get "control reaches end of non-void function" warnings?
  • From: j o a r <email@hidden>
  • Date: Mon, 28 Feb 2005 00:29:37 +0100

I would suggest using: "-Wall"!

j o a r

On 2005-02-28, at 00.00, daniel wrote:

Looks like you want "-Wreturn-type".

I found this by typing "gcc warnings" into the Apple search box and clicking this result:

http://developer.apple.com/documentation/DeveloperTools/gcc-3.3/gcc/ Warning-Options.html#Warning-Options

Daniel

On Feb 27, 2005, at 2:27 PM, Jonathan del Strother wrote:

In my Cocoa projects, I never get any "control reaches end of non-void function" warnings, which has tripped me up many times as I invariably forget to return self at the end of my init procedures.

Why is this? Is there a compiler switch I can toggle to get those warnings back?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Why don't I get "control reaches end of non-void function" warnings? (From: Jonathan del Strother <email@hidden>)
 >Re: Why don't I get "control reaches end of non-void function" warnings? (From: daniel <email@hidden>)

  • Prev by Date: loading apps above other windows?
  • Next by Date: Re: Why don't I get "control reaches end of non-void function" warnings?
  • Previous by thread: Re: Why don't I get "control reaches end of non-void function" warnings?
  • Next by thread: Re: Why don't I get "control reaches end of non-void function" warnings?
  • Index(es):
    • Date
    • Thread