From b29704cd1f19f03ac71ee7d308669135c6cfddcc Mon Sep 17 00:00:00 2001 From: Julian Rex Date: Tue, 5 Mar 2019 08:52:14 -0500 Subject: [PATCH] [ios] Mute warnings about OpenGL deprecation. (#14019) --- platform/darwin/src/MGLOpenGLStyleLayer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/darwin/src/MGLOpenGLStyleLayer.h b/platform/darwin/src/MGLOpenGLStyleLayer.h index f699284c3..fd82a4a69 100644 --- a/platform/darwin/src/MGLOpenGLStyleLayer.h +++ b/platform/darwin/src/MGLOpenGLStyleLayer.h @@ -27,11 +27,14 @@ MGL_EXPORT @property (nonatomic, weak, readonly) MGLStyle *style; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" #if TARGET_OS_IPHONE @property (nonatomic, readonly) EAGLContext *context; #else @property (nonatomic, readonly) CGLContextObj context; #endif +#pragma clang diagnostic pop - (instancetype)initWithIdentifier:(NSString *)identifier;