Add patch for GCC8
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 5 May 2018 21:58:53 +0000 (23:58 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Sun, 6 May 2018 10:13:45 +0000 (12:13 +0200)
Closes: #897833
debian/patches/0002-Dereference-shared_ptr-fix-for-GCC8.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0002-Dereference-shared_ptr-fix-for-GCC8.patch b/debian/patches/0002-Dereference-shared_ptr-fix-for-GCC8.patch
new file mode 100644 (file)
index 0000000..eb8df00
--- /dev/null
@@ -0,0 +1,35 @@
+From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
+Date: Sat, 5 May 2018 23:58:13 +0200
+Subject: Dereference shared_ptr, fix for GCC8
+
+---
+ segmentation/include/pcl/segmentation/ground_plane_comparator.h      | 2 +-
+ segmentation/include/pcl/segmentation/plane_coefficient_comparator.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/segmentation/include/pcl/segmentation/ground_plane_comparator.h b/segmentation/include/pcl/segmentation/ground_plane_comparator.h
+index e39354d..f96f38b 100644
+--- a/segmentation/include/pcl/segmentation/ground_plane_comparator.h
++++ b/segmentation/include/pcl/segmentation/ground_plane_comparator.h
+@@ -147,7 +147,7 @@ namespace pcl
+       const std::vector<float>&
+       getPlaneCoeffD () const
+       {
+-        return (plane_coeff_d_);
++        return (*plane_coeff_d_);
+       }
+       /** \brief Set the tolerance in radians for difference in normal direction between neighboring points, to be considered part of the same plane.
+diff --git a/segmentation/include/pcl/segmentation/plane_coefficient_comparator.h b/segmentation/include/pcl/segmentation/plane_coefficient_comparator.h
+index 9c94813..a21725a 100644
+--- a/segmentation/include/pcl/segmentation/plane_coefficient_comparator.h
++++ b/segmentation/include/pcl/segmentation/plane_coefficient_comparator.h
+@@ -141,7 +141,7 @@ namespace pcl
+       const std::vector<float>&
+       getPlaneCoeffD () const
+       {
+-        return (plane_coeff_d_);
++        return (*plane_coeff_d_);
+       }
+       /** \brief Set the tolerance in radians for difference in normal direction between neighboring points, to be considered part of the same plane.
index 1ae14fe829f089d22b4a94cbc2b029c4e12ebfd6..207a13fab1a0cd750059643188b9d9df42ebfc01 100644 (file)
@@ -1 +1,2 @@
 0001-Fix-PCL_ROOT-path.patch
+0002-Dereference-shared_ptr-fix-for-GCC8.patch