Re: Is there a warning for "Called function with no prototype"?
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