aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2018-12-03 17:39:28 -0500
committerGravatar Thomas Van Lenten <thomasvl@google.com>2018-12-03 20:16:36 -0500
commitad3d2290140632c735459e9910229ffd75267fd1 (patch)
tree0535cbb95ab4f6aa9c65e044aa25d8c971ef0e03
parent4b9ed0ff924f42740d78c3738afa5e79beb7f5d3 (diff)
Turn off the compiler warnings when building in another spot.
-rw-r--r--UnitTesting/GTMIPhoneUnitTestDelegate.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/UnitTesting/GTMIPhoneUnitTestDelegate.m b/UnitTesting/GTMIPhoneUnitTestDelegate.m
index a112a99..bfae704 100644
--- a/UnitTesting/GTMIPhoneUnitTestDelegate.m
+++ b/UnitTesting/GTMIPhoneUnitTestDelegate.m
@@ -28,6 +28,12 @@
#import <UIKit/UIKit.h>
#import "GTMSenTestCase.h"
+#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-declarations"
+#endif // !GTM_USING_XCTEST
+
@interface UIApplication (GTMIPhoneUnitTestDelegate)
// SPI that we need to exit cleanly with a value.
@@ -255,3 +261,5 @@ static int ClassSort(const void *a, const void *b) {
}
@end
+
+#pragma clang diagnostic pop