• 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: Is there a warning for "Called function with no prototype"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a warning for "Called function with no prototype"?


  • Subject: Re: Is there a warning for "Called function with no prototype"?
  • From: Cameron Hayne <email@hidden>
  • Date: Fri, 16 Jun 2006 22:46:39 -0400

On 16-Jun-06, at 9:33 PM, Jerry Krinock wrote:

Is there a warning I can turn on to catch this error? I tried "Missing
Function Prototypes" but that warns when undeclared functions are *defined*.
I want a warning when undeclared functions are *called*.

The GCC option you want is: -Wimplicit (Read 'man gcc' for details)

But I would recommend using instead
-Wall
to turn on all warnings.

I'm giving you the GCC options but I think the checkboxes in Xcode are named similarly.

--
Cameron Hayne
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
  • Follow-Ups:
    • Re: Is there a warning for "Called function with no prototype"?
      • From: Jerry Krinock <email@hidden>
References: 
 >Is there a warning for "Called function with no prototype"? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Is there a warning for "Called function with no prototype"?
  • Next by Date: Re: problem with cos ( pi/2 )
  • Previous by thread: Is there a warning for "Called function with no prototype"?
  • Next by thread: Re: Is there a warning for "Called function with no prototype"?
  • Index(es):
    • Date
    • Thread