From 943c09f1c74123fff480f9a1de075cd63c42c855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Sat, 16 Apr 2016 23:29:40 -0700 Subject: [ios, osx] Took advantage of C99 Now that #4641 has removed the prohibition against C99 extensions, this change removes many pragma statements that suppress warnings about variadic macros and designated initializers. Designated initializers and Elvis operators have been introduced wherever appropriate. --- platform/osx/src/MGLMapView.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/osx/src/MGLMapView.mm') diff --git a/platform/osx/src/MGLMapView.mm b/platform/osx/src/MGLMapView.mm index c982e4fa5d..307820334a 100644 --- a/platform/osx/src/MGLMapView.mm +++ b/platform/osx/src/MGLMapView.mm @@ -79,8 +79,8 @@ struct MGLAttribution { /// URL to open when the attribution button is clicked. NSString *urlString; } MGLAttributions[] = { - { @"Mapbox", @"https://www.mapbox.com/about/maps/" }, - { @"OpenStreetMap", @"http://www.openstreetmap.org/about/" }, + { .title = @"Mapbox", .urlString = @"https://www.mapbox.com/about/maps/" }, + { .title = @"OpenStreetMap", .urlString = @"http://www.openstreetmap.org/about/" }, }; /// Unique identifier representing a single annotation in mbgl. -- cgit v1.2.1