I want to use #pragma
(in Xcode) to suppress the warning:
warning: instance method \'-someMethod\' not found (return type defaults to \'id\'
This is how you can suppress the warnings. This is especially useful in test (fake) classes where you want to implement only a few methods of a class and don't need the rest.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wincomplete-implementation"
@implementation MyClass
@end
#pragma clang diagnostic pop