• 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: Warnings for undeclared methods?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warnings for undeclared methods?


  • Subject: Re: Warnings for undeclared methods?
  • From: Rick Mann <email@hidden>
  • Date: Mon, 21 Dec 2009 11:42:42 -0800

On Dec 21, 2009, at 02:55:59, Jeremy Pereira wrote:

>
> On 19 Dec 2009, at 21:31, Rick Mann wrote:
>
>> Using clang and llvm-gcc, I can't seem to get warnings for methods that haven't been declared (Objective C++). I have the settings checked in the project, but no warnings are actually issued. Am I missing something?
>
> I thought that was deliberate - there is no warning unless you try to use the method before you declare or define it.  It's quite useful for test case classes because you don't have to declare your tests in a header that's never actually used anywhere (except in the implementation of the same class).

No, I think I should still be able to ask the compiler for warnings. Even in the case you specify,  you can always put the declarations at the top of the implementation file (just good form).

--
Rick


 _______________________________________________
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: Warnings for undeclared methods?
      • From: Jeremy Pereira <email@hidden>
References: 
 >Warnings for undeclared methods? (From: Rick Mann <email@hidden>)
 >Re: Warnings for undeclared methods? (From: Jeremy Pereira <email@hidden>)

  • Prev by Date: Re: Warnings for undeclared methods?
  • Next by Date: Renaming things
  • Previous by thread: Re: Warnings for undeclared methods?
  • Next by thread: Re: Warnings for undeclared methods?
  • Index(es):
    • Date
    • Thread