diff options
author | Sergio Campama <kaipi@google.com> | 2017-06-16 12:53:57 -0700 |
---|---|---|
committer | Sergio Campamá <kaipi@google.com> | 2017-06-16 13:00:26 -0700 |
commit | d9d3b228b735cf0165232734247d270469712208 (patch) | |
tree | 2b26f03bedbe43e6dd7a6fd6402c58ed04a5fb11 /Foundation | |
parent | d49d04d53abe6b3c026275b94f41a1612f67c85d (diff) |
Avoid error from reserved macro name for GTMRegex.h
Diffstat (limited to 'Foundation')
-rw-r--r-- | Foundation/GTMRegex.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |