Skip to content

Commit

Permalink
Block deprecated warnings when testing on newer OS
Browse files Browse the repository at this point in the history
Some of the test methods we use are deprecated on newer OS. This just gets prevents the
warning that we don't actually care about.
  • Loading branch information
dmaclach authored and thomasvl committed Jun 18, 2021
1 parent 071b161 commit 9b3aaf4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions objectivec/Tests/GPBMessageTests.m
Expand Up @@ -383,6 +383,9 @@ - (void)testParseUninitialized {
#endif // DEBUG
}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

- (void)testCoding {
GPBMessage *original = [self mergeResult];
NSData *data =
Expand Down Expand Up @@ -418,6 +421,8 @@ - (void)testSecureCoding {
XCTAssertNotEqual(unarchivedObject, original);
}

#pragma clang diagnostic pop

- (void)testObjectReset {
// Tests a failure where clearing out defaults values caused an over release.
TestAllTypes *message = [TestAllTypes message];
Expand Down

0 comments on commit 9b3aaf4

Please sign in to comment.