• 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
Re: C prototype warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >C prototype warning (From: "James W. Walker" <email@hidden>)

  • Prev by Date: How to add classes in Xcode 3.0
  • Next by Date: Query regarding dynamic library
  • Previous by thread: C prototype warning
  • Next by thread: Framework development and Garbage collection required option?
  • Index(es):
    • Date
    • Thread