k06a / boolinq

Simplest C++ header-only LINQ template library
MIT License
628 stars 79 forks source link

Unused variables #46

Closed martinrotter closed 2 years ago

martinrotter commented 3 years ago
../../../rssguard/src/librssguard/3rd-party/boolinq/boolinq.h:120:38: warning: unused parameter 'value' [-Wunused-parameter]
            return where_i([count](T value, int i) { return i >= count; });
                                     ^
../../../rssguard/src/librssguard/3rd-party/boolinq/boolinq.h:282:54: warning: unused parameter 'index' [-Wunused-parameter]
            return selectMany_i([apply](T value, int index) { return apply(value); });
                                                     ^
../../../rssguard/src/librssguard/3rd-party/boolinq/boolinq.h:682:27: warning: unused variable 'index' [-Wunused-variable]
                     int &index = std::get<2>(tuple);
                          ^
../../../rssguard/src/librssguard/3rd-party/boolinq/boolinq.h:744:27: warning: unused variable 'index' [-Wunused-variable]
                     int &index = std::get<3>(tuple);
martinrotter commented 3 years ago

Actually, there is more (line numbers in the right side):

image

TaeZStkyoht commented 3 years ago

@martinrotter If you are using vcpkg, I created an update request and it was merged. You can now use without warnings. https://github.com/microsoft/vcpkg/issues/17463

k06a commented 3 years ago

Thx, fixed these warnings here: https://github.com/k06a/boolinq/commit/ee7654483674558fe1510c57c875a191f3417d36