Re: Warnings for undeclared methods?
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