From d49d04d53abe6b3c026275b94f41a1612f67c85d Mon Sep 17 00:00:00 2001 From: brian-intuit Date: Tue, 23 May 2017 10:32:01 -0700 Subject: Added -Wreserved-id-macro and but exclude existing nonconforming macros (#141) Added -Wreserved-id-macro and but exclude existing nonconforming macros --- GTMDefines.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'GTMDefines.h') diff --git a/GTMDefines.h b/GTMDefines.h index 8ec88cc..7feb1cb 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -109,6 +109,10 @@ // been placed in. // +// Ignore the "Macro name is a reserved identifier" warning in this section +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-id-macro" + // We only define the simple macros if nothing else has defined this. #ifndef _GTMDevLog @@ -170,6 +174,8 @@ #endif // __has_feature(c_static_assert) || __has_extension(c_static_assert) #endif // _GTMCompileAssert +#pragma clang diagnostic pop + // ---------------------------------------------------------------------------- // CPP symbols defined based on the project settings so the GTM code has // simple things to test against w/o scattering the knowledge of project -- cgit v1.2.3