I am passing a Class type as a parameter to a method, and the LLVM compiler in XCode 4.5.2 generates a warning, “multiple methods named ‘foo’ found”, which is understandable, but undesired in this case. How do I get rid of this warning, either by disabling this type of warning, or by making changes to my code?
- (void) fooWithClass: (Class) theClass
{
[theClass aClassMethodOfThatClass];
}
more specifically, the parameter is a subclass of a certain base class, and i am sending a message which is declared in that base class.
To disable the warning, you can check the clang manual. Like this: