summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2019-03-01 16:22:06 -0500
committerJulian Rex <julian.rex@mapbox.com>2019-03-01 16:22:06 -0500
commit685725a0299f12c1441ccf946e8ad33e0646d372 (patch)
tree81a1cb3c7a2f4494a1e5e6a05831713496327752
parent405e20e3c8e1ba489fb48ad76fcbe5738ce643b3 (diff)
downloadqtlocation-mapboxgl-upstream/jrex/open-gl-deprecation-warnings.tar.gz
Mute warnings about OpenGL deprecation.upstream/jrex/open-gl-deprecation-warnings
-rw-r--r--platform/darwin/src/MGLOpenGLStyleLayer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLOpenGLStyleLayer.h b/platform/darwin/src/MGLOpenGLStyleLayer.h
index f699284c32..fd82a4a69d 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;