• 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: Automatically prototype C functions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically prototype C functions?


  • Subject: Re: Automatically prototype C functions?
  • From: Sean McBride <email@hidden>
  • Date: Thu, 16 Jun 2011 17:24:03 -0400
  • Organization: Rogue Research Inc.

On Thu, 16 Jun 2011 17:21:01 -0400, Feifan Zhou said:

>Is there a way for Xcode 4 to automatically generate prototypes for C
>functions? The compiler catches them and generates warnings—prototyping
>automatically just seems like the next step.

I think I know the warning you're talking about.  Are these C function private to your .c file?  If so, you should declare them as static, then they stay private to the translation unit and there'll be no warning.

--
____________________________________________________________
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

References: 
 >Automatically prototype C functions? (From: Feifan Zhou <email@hidden>)

  • Prev by Date: Automatically prototype C functions?
  • Next by Date: Re: XCode 4 debugger
  • Previous by thread: Automatically prototype C functions?
  • Next by thread: Re: moving files into groups which match the filesystem
  • Index(es):
    • Date
    • Thread