• 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: warning in main.m
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning in main.m


  • Subject: Re: warning in main.m
  • From: matt neuburg <email@hidden>
  • Date: Tue, 30 Dec 2003 18:43:33 -0800

On 12/30/03 at roughly 5:39 PM, thus spake Kaelin Colclasure <email@hidden>:

>NSApplicationMain is declared to take 'const char * argv[]' as its
>second argument, and it's being passed a non-const one. It's happening
>"all of a sudden" because you are using a newer, stricter version of
>gcc by default with Xcode.
>
>The warning is easy to eliminate: Just declare the second argument to
>main as 'const char * argv[]' rather than 'char * argv[]'.

Yes, that makes sense as far as the C language is concerned. But what about
Xcode? I didn't write main.c; I didn't write this code. It just magically
appears when I create a new project. So why is Xcode generating an incorrect
main.c? I mean, I don't want to have to edit this code every time I create a
new project; I want a new project to be correct by default. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: warning in main.m (From: Kaelin Colclasure <email@hidden>)

  • Prev by Date: Re: warning in main.m
  • Next by Date: Re: warning in main.m
  • Previous by thread: Re: warning in main.m
  • Next by thread: Re: warning in main.m
  • Index(es):
    • Date
    • Thread