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

Shadowing #6

Closed
zeeev opened this issue Mar 16, 2021 · 2 comments
Closed

Shadowing #6

zeeev opened this issue Mar 16, 2021 · 2 comments

Comments

@zeeev
Copy link

zeeev commented Mar 16, 2021

Getting a warning about variable shadowing.

../src/third-party/cgranges/IITree.h:48:35: warning: declaration shadows a field of 'IITree<S, T>' [-Wshadow]
                bool operator()(const Interval &a, const Interval &b) const { return a.st < b.st; }
                                                ^
../src/third-party/cgranges/IITree.h:50:24: note: previous declaration is here
        std::vector<Interval> a;
                              ^
../src/third-party/cgranges/IITree.h:52:40: warning: declaration shadows a field of 'IITree<S, T>' [-Wshadow]
        int index_core(std::vector<Interval> &a) {
                                              ^
../src/third-party/cgranges/IITree.h:50:24: note: previous declaration is here
        std::vector<Interval> a;
@zeeev
Copy link
Author

zeeev commented Mar 26, 2021

This should be a trivial fix, right?

@zeeev zeeev mentioned this issue Apr 2, 2021
@lh3
Copy link
Owner

lh3 commented Apr 4, 2021

This doesn't matter.

@lh3 lh3 closed this as completed Apr 4, 2021
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

No branches or pull requests

2 participants