Skip to content

Commit 9b3aaf4

Browse files
dmaclachthomasvl
authored andcommitted
Block deprecated warnings when testing on newer OS
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.
1 parent 071b161 commit 9b3aaf4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

objectivec/Tests/GPBMessageTests.m

+5
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ - (void)testParseUninitialized {
383383
#endif // DEBUG
384384
}
385385

386+
#pragma clang diagnostic push
387+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
388+
386389
- (void)testCoding {
387390
GPBMessage *original = [self mergeResult];
388391
NSData *data =
@@ -418,6 +421,8 @@ - (void)testSecureCoding {
418421
XCTAssertNotEqual(unarchivedObject, original);
419422
}
420423

424+
#pragma clang diagnostic pop
425+
421426
- (void)testObjectReset {
422427
// Tests a failure where clearing out defaults values caused an over release.
423428
TestAllTypes *message = [TestAllTypes message];

0 commit comments

Comments
 (0)