From 4b9ed0ff924f42740d78c3738afa5e79beb7f5d3 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Mon, 3 Dec 2018 17:04:39 -0500 Subject: Turn off the compiler warnings when building the sources. Let the library build cleaning in the modes folks should migrate, their code will still get the warning using things. --- UnitTesting/GTMSenTestCase.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/UnitTesting/GTMSenTestCase.m b/UnitTesting/GTMSenTestCase.m index 6d93451..5cea581 100644 --- a/UnitTesting/GTMSenTestCase.m +++ b/UnitTesting/GTMSenTestCase.m @@ -28,6 +28,9 @@ #if GTM_IPHONE_SDK && !GTM_USING_XCTEST #import +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-implementations" + @interface NSException (GTMSenTestPrivateAdditions) + (NSException *)failureInFile:(NSString *)filename atLine:(int)lineNumber @@ -392,8 +395,16 @@ static NSInteger MethodSort(id a, id b, void *context) { @end +#pragma clang diagnostic pop + #endif // GTM_IPHONE_SDK && !GTM_USING_XCTEST +#pragma clang diagnostic push +#if !GTM_USING_XCTEST +// Turn off the deprecated warning when GTMTestCase is still based on SenTest. +#pragma clang diagnostic ignored "-Wdeprecated-implementations" +#endif // !GTM_USING_XCTEST + @implementation GTMTestCase + (BOOL)isAbstractTestCase { @@ -410,3 +421,5 @@ static NSInteger MethodSort(id a, id b, void *context) { } @end + +#pragma clang diagnostic pop -- cgit v1.2.3