From: Jochen Sprickerhof Date: Sat, 5 May 2018 21:58:53 +0000 (+0200) Subject: Add patch for GCC8 X-Git-Tag: archive/raspbian/1.14.0+dfsg-2+rpi1^2~149 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=86beeb982b27ade6ecdcf28400b0d5600d4adbc1;p=pcl.git Add patch for GCC8 Closes: #897833 --- 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 index 00000000..eb8df000 --- /dev/null +++ b/debian/patches/0002-Dereference-shared_ptr-fix-for-GCC8.patch @@ -0,0 +1,35 @@ +From: Jochen Sprickerhof +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& + 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& + 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/debian/patches/series b/debian/patches/series index 1ae14fe8..207a13fa 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0001-Fix-PCL_ROOT-path.patch +0002-Dereference-shared_ptr-fix-for-GCC8.patch