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

checks: Fix -Wunused-lambda-capture compiler warning #2160

Merged
merged 2 commits into from
Mar 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vector/v.in.pdal/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ int main(int argc, char *argv[])
gpoint_count n_class_filtered = 0;

int cat = 1;
bool cat_max_reached = false;
// TODO: category number needs to be checked
// bool cat_max_reached = false;

// define callback
// Capture all values for reading by value, except for the ones
Expand All @@ -465,8 +466,7 @@ int main(int argc, char *argv[])
// point is filtered out (and should not be used by next stage).
// Here the return value does not matter unless we split this into
// two or more stages.
auto cb = [=, &cat, &cat_max_reached,
&n_outside, &zrange_filtered, &n_filtered,
auto cb = [=, &cat, &n_outside, &zrange_filtered, &n_filtered,
&n_class_filtered, &class_filter, &return_filter_struct,
&output_vector, &layers](pdal::PointRef& point) -> bool
{
Expand Down