PDAL/PDAL_240_include_fix.patch

26 lines
877 B
Diff

diff --git a/filters/VoxelCentroidNearestNeighborFilter.cpp b/filters/VoxelCentroidNearestNeighborFilter.cpp
index 4be4d5d92e..cdcdf29d14 100644
--- a/filters/VoxelCentroidNearestNeighborFilter.cpp
+++ b/filters/VoxelCentroidNearestNeighborFilter.cpp
@@ -134,7 +134,7 @@ PointViewSet VoxelCentroidNearestNeighborFilter::run(PointViewPtr view)
// Compute distance from each point in the voxel to the centroid,
// retaining only the closest.
- PointId pmin;
+ PointId pmin = 0;
double dmin((std::numeric_limits<double>::max)());
for (auto const& p : t.second)
{
diff --git a/io/LasVLR.hpp b/io/LasVLR.hpp
index 7120511eb4..e90d27ee4e 100644
--- a/io/LasVLR.hpp
+++ b/io/LasVLR.hpp
@@ -34,6 +34,7 @@
#pragma once
+#include <memory>
#include <vector>
#include <pdal/pdal_export.hpp>