Re: C prototype warning
Re: C prototype warning
- Subject: Re: C prototype warning
- From: Philip Aker <email@hidden>
- Date: Mon, 10 Dec 2007 01:27:38 -0800
On Dec 9, 2007, at 10:43 PM, James W. Walker wrote:
When I compile the following C code with Xcode 3, I get a warning,
"'bar' was used with no prototype before its definition". Since
the very first thing here is a prototype of bar, I don't get it.
static void bar();
static void foo()
{
bar();
}
static void bar()
{
}
Isn't C:
static void bar( void );
static void foo( void ) {
bar();
}
void bar( void ) {
}
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
_______________________________________________
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