Is there a clang pragma to ignore Objective-C generic "incompatible pointer types" warning?

I'd like to silence an Objective-C generic "Incompatible pointer types" warning in my unit tests. Is it possible to do something like this?


#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wincompatible-pointer-type"
XCTAssertThrows([myGenericContainer addObject:incompatibleObject]); // => displays warning
#pragma clang diagnostic pop


Is there a clang diagnostic that will allow me to silence this warning? Thanks!

Is there a clang pragma to ignore Objective-C generic "incompatible pointer types" warning?
 
 
Q