diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2018-12-03 17:04:39 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2018-12-03 17:14:20 -0500 |
commit | 4b9ed0ff924f42740d78c3738afa5e79beb7f5d3 (patch) | |
tree | 561d57985c99d550fcf63c360732b642497b1a5a | |
parent | b3420d407e31ac95d18c9a31e8435b1c402701aa (diff) |
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.
-rw-r--r-- | UnitTesting/GTMSenTestCase.m | 13 |
1 files changed, 13 insertions, 0 deletions
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 <stdarg.h> +#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 |