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

gcc compile warning and error


  • Subject: gcc compile warning and error
  • From: Dennis Christopher <email@hidden>
  • Date: Tue, 2 Mar 2010 14:28:17 -0500

I've moved some c code I am maintaining from a 10.4 device to a 10.5 device and now get a compile warning and error running a build script that uses gcc. The gcc version is 4.01 in both cases.

I get:

rfilter.c: At top level:
rfilter.c:170: warning: ‘process_diblogin_func’ used but never defined
rfilter.c:1077: warning: ‘compute_rate’ defined but not used
/var/tmp//cc3oKOKn.s:2913:non-relocatable subtraction _expression_, "_process_diblogin_func" minus "L00000000023$pb"
/var/tmp//cc3oKOKn.s:2913:symbol: "_process_diblogin_func" can't be undefined in a subtraction _expression_
/var/tmp//cc3oKOKn.s:2909:non-relocatable subtraction _expression_, "_process_diblogin_func" minus "L00000000023$pb"
/var/tmp//cc3oKOKn.s:2909:symbol: "_process_diblogin_func" can't be undefined in a subtraction _expression_

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

Dennis Christopher
 _______________________________________________
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: gcc compile warning and error
      • From: Jeremy Pereira <email@hidden>
    • Re: gcc compile warning and error
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: problems with NFS mounted home dir and xcode
  • Next by Date: Re: Slow debugger loading in Xcode 3.1.3
  • Previous by thread: Re: problems with NFS mounted home dir and xcode
  • Next by thread: Re: gcc compile warning and error
  • Index(es):
    • Date
    • Thread