Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Allow C99 extensions in iOS and OS X SDK targets #4191

Closed

Description

@1ec5

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.

If 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.

/cc @jfirebaugh @boundsj

Activity

  1. added
    iOS
    macOS
    on Mar 3, 2016
  2. boundsj commented on Mar 3, 2016

    @boundsj
    Contributor

    👍

  3. self-assigned this
    on Apr 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildiOSmacOSrefactor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions