diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-03-12 15:43:33 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-03-13 11:05:38 -0700 |
commit | 936cc33d5291a77bc4e0dda9c7956860bef5f872 (patch) | |
tree | d61ad0ed53925c522c8eb7d59adee1ec5f8ff436 /platform/macos | |
parent | 5120cbada432b7bce9553f8857e2c3541be8cdb0 (diff) | |
download | qtlocation-mapboxgl-936cc33d5291a77bc4e0dda9c7956860bef5f872.tar.gz |
[ios, macos] Resolved unused variable warnings
Resolved unused variable warnings in Release configuration that occurred because they were only used within NSAssert() invocations, which are omitted from Release builds.
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/src/MGLMapView.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm index e72a755f51..8711950554 100644 --- a/platform/macos/src/MGLMapView.mm +++ b/platform/macos/src/MGLMapView.mm @@ -2419,9 +2419,11 @@ public: - (void)addOverlays:(NS_ARRAY_OF(id <MGLOverlay>) *)overlays { +#if DEBUG for (id <MGLOverlay> overlay in overlays) { NSAssert([overlay conformsToProtocol:@protocol(MGLOverlay)], @"Overlay does not conform to MGLOverlay"); } +#endif [self addAnnotations:overlays]; } @@ -2430,9 +2432,11 @@ public: } - (void)removeOverlays:(NS_ARRAY_OF(id <MGLOverlay>) *)overlays { +#if DEBUG for (id <MGLOverlay> overlay in overlays) { NSAssert([overlay conformsToProtocol:@protocol(MGLOverlay)], @"Overlay does not conform to MGLOverlay"); } +#endif [self removeAnnotations:overlays]; } |