Skip to content

Commit

Permalink
v.in.pdal: fix -Wunused-lambda-capture compiler warning (OSGeo#2160)
Browse files Browse the repository at this point in the history
Commented out unused variable, as work TODO:
reported in OSGeo#2234.
  • Loading branch information
nilason authored and neteler committed Nov 7, 2023
1 parent acbaa84 commit 5360485
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 5360485

Please sign in to comment.