"No previous prototype for function" warning
"No previous prototype for function" warning
- Subject: "No previous prototype for function" warning
- From: Dave Keck <email@hidden>
- Date: Fri, 05 Aug 2011 18:51:12 -1000
Hey list,
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;
}
The warning is removed by inserting 'void' into the testing() declaration:
void testing(void);
void testing()
{
}
int main()
{
testing();
return 0;
}
Is this a bug or is the first testing() declaration invalid for its
respective definition?
Thanks!
David
_______________________________________________
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