• 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: gcc compile warning and error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >gcc compile warning and error (From: Dennis Christopher <email@hidden>)

  • Prev by Date: "-Wno-import" does not suppress "#import is a GCC extension" warnings
  • Next by Date: xcode XML parser for iPhone app
  • Previous by thread: gcc compile warning and error
  • Next by thread: Re: gcc compile warning and error
  • Index(es):
    • Date
    • Thread