From 8034c4c4a6c5bdb80a6368511ac09f8cbe96b9a6 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Fri, 6 Oct 2017 13:15:04 -0400 Subject: Make unittesting headers work with -Wreserved-id-macro --- UnitTesting/GTMSenTestCase.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UnitTesting/GTMSenTestCase.h b/UnitTesting/GTMSenTestCase.h index 00d8dc4..46c5502 100644 --- a/UnitTesting/GTMSenTestCase.h +++ b/UnitTesting/GTMSenTestCase.h @@ -71,6 +71,9 @@ #if GTM_USING_XCTEST +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-id-macro" + #define _XCExceptionFormatString @"throwing \"%@\"" #define _XCUnknownExceptionString @"throwing an unknown exception" #if (defined(__IPHONE_8_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0) || (GTM_MACOS_SDK == 1) @@ -81,6 +84,8 @@ #define _GTMXCRegisterFailure(expression, format...) _XCTRegisterFailure(expression, format) #endif // defined defined(__IPHONE_8_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0 +#pragma clang diagnostic pop + // Generates a failure when a1 != noErr // Args: // a1: should be either an OSErr or an OSStatus -- cgit v1.2.3