Re: "No previous prototype for function" warning
Re: "No previous prototype for function" warning
- Subject: Re: "No previous prototype for function" warning
- From: Sean McBride <email@hidden>
- Date: Sat, 06 Aug 2011 10:55:37 -0400
- Organization: Rogue Research Inc.
On Fri, 5 Aug 2011 18:51:12 -1000, Dave Keck said:
>Xcode 4.1 on Lion emits a "No previous prototype for function" for the
>following program:
>
> void testing();
> void testing()
> {
> }
>
> int main()
> {
> testing();
> return 0;
> }
If testing() is private to this file, don't bother with a prototype at all, just mark the function as static:
static void testing(void)
{ ... }
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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