From 87ca6e95f2bcaca3975904305363d030f6b9a081 Mon Sep 17 00:00:00 2001 From: nilason Date: Tue, 23 Mar 2021 16:08:33 +0100 Subject: [PATCH 1/2] fix -Wunused-lambda-capture compiler warning --- vector/v.in.pdal/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vector/v.in.pdal/main.cpp b/vector/v.in.pdal/main.cpp index a4050d96335..1e557d454b8 100644 --- a/vector/v.in.pdal/main.cpp +++ b/vector/v.in.pdal/main.cpp @@ -456,7 +456,6 @@ int main(int argc, char *argv[]) gpoint_count n_class_filtered = 0; int cat = 1; - bool cat_max_reached = false; // define callback // Capture all values for reading by value, except for the ones @@ -465,8 +464,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 { From a64e5945c1cab55da971be69591e919a9da65b13 Mon Sep 17 00:00:00 2001 From: Nicklas Larsson Date: Mon, 14 Feb 2022 10:23:57 +0100 Subject: [PATCH 2/2] Add TODO comment --- vector/v.in.pdal/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vector/v.in.pdal/main.cpp b/vector/v.in.pdal/main.cpp index 1e557d454b8..d4f69ec31f4 100644 --- a/vector/v.in.pdal/main.cpp +++ b/vector/v.in.pdal/main.cpp @@ -456,6 +456,8 @@ int main(int argc, char *argv[]) gpoint_count n_class_filtered = 0; int cat = 1; + // 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