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 popIs there a clang diagnostic that will allow me to silence this warning? Thanks!