Skip to content

Commit

Permalink
Merge pull request #1541 from r9y9/fix-compilation-error-on-openmp-en…
Browse files Browse the repository at this point in the history
…abled-clang-trunk

Declare `const InterestPoint&` explicitly to avoid compilation error on openmp-enabled clang
  • Loading branch information
jspricke committed Feb 16, 2016
2 parents b1140e0 + fecfbad commit 80339fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion features/src/narf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ Narf::extractForInterestPoints (const RangeImage& range_image, const PointCloud<
//!!! nizar 20110408 : for OpenMP sake on MSVC this must be kept signed
for (int interest_point_idx = 0; interest_point_idx < int (interest_points.points.size ()); ++interest_point_idx)
{
Vector3fMapConst point = interest_points.points[interest_point_idx].getVector3fMap ();
const InterestPoint& interest_point = interest_points.points[interest_point_idx];
Vector3fMapConst point = interest_point.getVector3fMap ();

Narf* feature = new Narf;
if (!feature->extractFromRangeImage(range_image, point, descriptor_size, support_size))
Expand Down

0 comments on commit 80339fd

Please sign in to comment.