From 05be8ca132688cb36e7ef1dc93c3499382e5bb18 Mon Sep 17 00:00:00 2001 From: Nicklas Larsson Date: Wed, 2 Mar 2022 10:55:40 +0100 Subject: [PATCH] v.in.pdal: fix -Wunused-lambda-capture compiler warning (#2160) Commented out unused variable, as work TODO: reported in https://github.com/OSGeo/grass/issues/2234. --- vector/v.in.pdal/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vector/v.in.pdal/main.cpp b/vector/v.in.pdal/main.cpp index a4050d96335..d4f69ec31f4 100644 --- a/vector/v.in.pdal/main.cpp +++ b/vector/v.in.pdal/main.cpp @@ -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 @@ -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 {