Disabling some compiler warnings
Disabling some compiler warnings
- Subject: Disabling some compiler warnings
- From: email@hidden
- Date: Sun, 15 Jul 2001 19:58:30 +0200
Is there a way to disable some unuseful warnings of the compiler? For
instance, I have a class with:
IBOutlet id delegate;
and then in implementation:
[delegate someAction];
The compiler says:
Warning: cannot find method
Warning: return type for 'someAction' defaults to id
Well how would it be possible to find a method for an 'id', anyway? If I
declare the object as id, I already know that the compiler cannot check at
runtime, so it is just noise. Moreover, I don't mind the return type,
since I don't use it (the method is called as a procedure; actually it's a
void one in my case). this is something that the compiler could check
before issuing the warning!
Thanks for any suggestion.
Thomas Lachand-Robert
********************** email@hidden
The Commandant Project:
http://lachand.free.fr/
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.