From ad3d2290140632c735459e9910229ffd75267fd1 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Mon, 3 Dec 2018 17:39:28 -0500 Subject: Turn off the compiler warnings when building in another spot. --- UnitTesting/GTMIPhoneUnitTestDelegate.m | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #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 -- cgit v1.2.3