Re: gcc compile warning and error
Re: gcc compile warning and error
- Subject: Re: gcc compile warning and error
- From: Ken Thomases <email@hidden>
- Date: Tue, 2 Mar 2010 21:09:44 -0600
On Mar 2, 2010, at 1:28 PM, Dennis Christopher wrote:
> rfilter.c: At top level:
> rfilter.c:170: warning: ‘process_diblogin_func’ used but never defined
> The lines starting /var/tmp seem to be occasioned by a line that makes a call to a thread creation function of ours that takes a function pointer as the first argument
> --and I am passing process_diblogin_func in that argument. So, this seems logical in a way, if in fact that function is never defined. But it is.
>
> At line 170 it is declared
> static void
> process_diblogin_func(void *arg);
>
> Then implemented later in the file (rfilter.c.)
Make sure the definition really matches the declaration. You might have a typo.
Also, it's worth preprocessing the file and looking at the result to make sure some macro definition isn't interfering with the definition. For example, renaming it.
Regards,
Ken
_______________________________________________
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