Re: Can't figure out compiler warning (C/Objective-c)
Re: Can't figure out compiler warning (C/Objective-c)
- Subject: Re: Can't figure out compiler warning (C/Objective-c)
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 18 Apr 2005 00:17:53 -0600
On Apr 17, 2005, at 11:16 PM, Mark Dawson wrote:
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:
Defaults.m:177: warning: no previous prototype for
`setupUserDefaultsAndRegister'
Why did you use the extern keyword in the prototype? It seems to me
that it isn't necessary to do that. Try removing it and see what
happens.
Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request
_______________________________________________
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