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

gcc compatible by renaming shadowed decleration #20

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Sep 13, 2018

This PR addresses error: declaration of ‘c’ shadows a previous local [-Werror=shadow] noticed downstream in mapbox/mapbox-gl-native#12726 when compiling with gcc.
Example failing CI build here.

Have tried producing this error from this repo but wasn't able to. Issue was addressed by replacing all mentioned note: shadowed declaration is here by an renamed variant. From the 4 errors shown in linked build, there are 2 root causes:

  • supercluster/0.3.0/include/supercluster.hpp:318:25
  • supercluster/0.3.0/include/supercluster.hpp:337:53

@tobrun tobrun self-assigned this Sep 13, 2018
@mourner mourner merged commit 01ff6f2 into master Sep 13, 2018
@mourner mourner deleted the tvn-gcc-compatible-shadow-decleration branch September 13, 2018 12:15
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.

3 participants