Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence locationManager warning #190

Merged
merged 3 commits into from
May 1, 2017
Merged

Silence locationManager warning #190

merged 3 commits into from
May 1, 2017

Conversation

bsudekum
Copy link
Contributor

@bsudekum bsudekum commented May 1, 2017

Closes: #172

@bsudekum bsudekum requested review from frederoni and 1ec5 May 1, 2017 16:37
@@ -1,3 +1,4 @@
#pragma clang diagnostic ignored "-Wincomplete-implementation"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This silences the diagnostic for every file that includes this header and thus every project that includes this SDK. Use clang diagnostic push and clang diagnostic pop to scope this pragma to just the lines that need it. See this article for more information about diagnostic pragmas.

@bsudekum
Copy link
Contributor Author

bsudekum commented May 1, 2017

@1ec5 good call, fixed

Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot one more thing: let’s add a comment referencing mapbox/mapbox-gl-native#6867 so that people know why we’re doing something as hacky as suppressing a compiler warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants