• 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
"No previous prototype for function" warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"No previous prototype for function" warning


  • Subject: "No previous prototype for function" warning
  • From: Dave Keck <email@hidden>
  • Date: Fri, 05 Aug 2011 18:51:12 -1000

Hey list,

Xcode 4.1 on Lion emits a "No previous prototype for function" for the
following program:

    void testing();
    void testing()
    {
    }

    int main()
    {
        testing();
        return 0;
    }

The warning is removed by inserting 'void' into the testing() declaration:

    void testing(void);
    void testing()
    {
    }

    int main()
    {
        testing();
        return 0;
    }

Is this a bug or is the first testing() declaration invalid for its
respective definition?

Thanks!

David
 _______________________________________________
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

  • Follow-Ups:
    • Re: "No previous prototype for function" warning
      • From: Sean McBride <email@hidden>
    • Re: "No previous prototype for function" warning
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Can't get the right destinations to show up
  • Next by Date: Re: "No previous prototype for function" warning
  • Previous by thread: Re: Can't get the right destinations to show up
  • Next by thread: Re: "No previous prototype for function" warning
  • Index(es):
    • Date
    • Thread