• 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: Wayne Hasley <email@hidden>
  • Date: Tue, 30 Dec 2003 20:46:04 -0500

On 12/30/03 8:24 PM, "matt neuburg" <email@hidden> wrote:

> //  main.m
> #import <Cocoa/Cocoa.h>
> int main(int argc, char *argv[])
> {
>   return NSApplicationMain(argc, argv); // warning here!
> }
>
> The warning reads: "passing arg 2 of `NSApplicationMain' from incompatible
> pointer type".
>
> What does this mean and how do I make it stop? Why is it happening all of a
> sudden like this? Thx - m.

Are 2 should be a const...

Change it to:
 int main(int argc, const char *argv[])
 {
   return NSApplicationMain(argc, argv); // warning here!
 }

Wayne
_______________________________________________
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.

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