From 4519f8a867e50eccb3f85b683636de43924e7450 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Mon, 19 Nov 2018 18:54:06 -0500 Subject: [darwin] Fix typos in pragma diagnostic declarations Per GCC_WARN_UNKNOWN_PRAGMAS. --- platform/darwin/src/NSExpression+MGLAdditions.mm | 4 ++-- platform/ios/src/MGLMapView.mm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/darwin/src/NSExpression+MGLAdditions.mm b/platform/darwin/src/NSExpression+MGLAdditions.mm index 9c12c6beac..0d6b74e93c 100644 --- a/platform/darwin/src/NSExpression+MGLAdditions.mm +++ b/platform/darwin/src/NSExpression+MGLAdditions.mm @@ -46,7 +46,7 @@ const MGLExpressionInterpolationMode MGLExpressionInterpolationModeCubicBezier = // Effectively categorize the class with some extra class methods. Class NSPredicateUtilities = objc_getMetaClass(className.UTF8String); -#pragma clang push +#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wundeclared-selector" #define INSTALL_METHOD(sel) \ { \ @@ -85,7 +85,7 @@ const MGLExpressionInterpolationMode MGLExpressionInterpolationModeCubicBezier = INSTALL_CONTROL_STRUCTURE(MGL_FUNCTION); #undef INSTALL_AFTERMARKET_FN -#pragma clang pop +#pragma clang diagnostic pop } /** diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 5b74ded15f..79195f6f8d 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -6147,7 +6147,7 @@ public: center.y = CGRectGetMaxY(contentFrame); break; } -#pragma clang dianostic pop +#pragma clang diagnostic pop return center; } -- cgit v1.2.1