• 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: Jerry Krinock <email@hidden>
  • Date: Sun, 18 Jun 2006 08:04:48 -0700
  • Thread-topic: Is there a warning for "Called function with no prototype"?

on 06/06/16 19:46, Cameron Hayne at email@hidden wrote:

> 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.

Thank you, Cameron.  The exact answer (tested and works) is to

1.  Doubleclick the Target.
2.  Select All Configurations.
3.  Select tab: Build.
4.  Find setting "Other Warning Flags".
5.  In this setting, add the value "-Wimplicit-function-declaration", or as
you suggest, "-Wall", using a space to separate from other existing values,
if any.


 _______________________________________________
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

References: 
 >Re: Is there a warning for "Called function with no prototype"? (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: Greg Guerin <email@hidden>
  • Next by Date: Re: problem with cos ( pi/2 )
  • Previous by thread: Re: Is there a warning for "Called function with no prototype"?
  • Next by thread: Xcode 2.3 Wrong Headers
  • Index(es):
    • Date
    • Thread