From d9d3b228b735cf0165232734247d270469712208 Mon Sep 17 00:00:00 2001 From: Sergio Campama Date: Fri, 16 Jun 2017 12:53:57 -0700 Subject: Avoid error from reserved macro name for GTMRegex.h --- Foundation/GTMRegex.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Foundation') diff --git a/Foundation/GTMRegex.h b/Foundation/GTMRegex.h index 5ec778f..03f7ae5 100644 --- a/Foundation/GTMRegex.h +++ b/Foundation/GTMRegex.h @@ -54,6 +54,10 @@ typedef NSUInteger GTMRegexOptions; /// Global contants needed for errors from consuming patterns +// Ignore the "Macro name is a reserved identifier" warning in this section +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-id-macro" + #undef _EXTERN #undef _INITIALIZE_AS #if GTMREGEX_DEFINE_GLOBALS @@ -64,6 +68,8 @@ typedef NSUInteger GTMRegexOptions; #define _INITIALIZE_AS(x) #endif +#pragma clang diagnostic pop + _EXTERN NSString* kGTMRegexErrorDomain _INITIALIZE_AS(@"com.google.mactoolbox.RegexDomain"); enum { -- cgit v1.2.3