• 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
Can't figure out compiler warning (C/Objective-c)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't figure out compiler warning (C/Objective-c)


  • Subject: Can't figure out compiler warning (C/Objective-c)
  • From: Mark Dawson <email@hidden>
  • Date: Sun, 17 Apr 2005 22:16:59 -0700

In my .h file I have:
extern void setupUserDefaultsAndRegister();

In my .m file I have:

void setupUserDefaultsAndRegister() { … }

I get a warning (pointing to the declaration line) that I don't understand:

<x-tad-smaller>Defaults.m:177: warning: no previous prototype for `setupUserDefaultsAndRegister'

</x-tad-smaller>
I must be missing something--it seems to be declared exactly the same, and IS called (I can use it and trace into from the debugger). Can anyone shed light on this?

Using XCode 1.5…

Thanks!

mark
<x-tad-smaller>
</x-tad-smaller>
 _______________________________________________
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: Can't figure out compiler warning (C/Objective-c)
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: I cannot see my icons in the Images pane in IB
  • Next by Date: Re: Can't figure out compiler warning (C/Objective-c)
  • Previous by thread: I cannot see my icons in the Images pane in IB
  • Next by thread: Re: Can't figure out compiler warning (C/Objective-c)
  • Index(es):
    • Date
    • Thread