Skip to content

Silence locationManager warning - #190

Merged
bsudekum merged 3 commits into
masterfrom
silence
May 1, 2017
Merged

bsudekum merged 3 commits into
masterfrom
silence

Conversation

@bsudekum

@bsudekum bsudekum commented May 1, 2017

Copy link
Copy Markdown
Contributor

Closes: #172

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

Copy link
Copy Markdown
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

bsudekum commented May 1, 2017

Copy link
Copy Markdown
Contributor Author

@1ec5 good call, fixed

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Contributor

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