{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4191","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4191/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4191/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4191/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/4191","id":138283957,"number":4191,"title":"Allow C99 extensions in iOS and OS X SDK targets","user":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/build","name":"build","color":"d4c5f9"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/iOS","name":"iOS","color":"207de5"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/OS%20X","name":"OS X","color":"333333"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/refactor","name":"refactor","color":"4c4c4c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T20:07:47Z","updated_at":"2016-03-03T20:07:47Z","closed_at":null,"body":"C99 extensions are currently disallowed throughout the project due to pedantic warnings being enabled. This makes no sense in Objective-C code, since we’ve been able to depend on C99 support for years. At the least, the iOS and OS X SDK targets should get a `-Wno-c99-extensions` flag. This will enable us to remove a fair amount of redundant code in MGLMapView.\r\n\r\nIf any non-SDK Objective-C code needs to use C99-specific features like designated initializers or the Elvis operator, we can selectively turn off the Clang warning via `#pragma clang diagnostic ignored \"-Wc99-extensions\"` on a case-by-case basis.\r\n\r\n/cc @jfirebaugh @boundsj"}}