diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2017-10-06 13:15:04 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2017-10-06 13:37:34 -0400 |
commit | 8034c4c4a6c5bdb80a6368511ac09f8cbe96b9a6 (patch) | |
tree | 43f840fb7f6f189fec4e0f5fffba7a1f86f7dbb8 | |
parent | 9c150609caf02835cdaab105a541fc7502884915 (diff) |
Make unittesting headers work with -Wreserved-id-macro
-rw-r--r-- | UnitTesting/GTMSenTestCase.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |