Skip to content

Commit

Permalink
Merge pull request #2073 from SergioRAgostinho/uninitialized-warn
Browse files Browse the repository at this point in the history
Suppress (maybe) uninitialized warning
  • Loading branch information
taketwo authored Nov 11, 2017
2 parents 6652c1a + b829331 commit 7acc1e0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/include/pcl/impl/point_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ namespace pcl
{
inline PointDEM (const _PointDEM &p)
{
x = p.x; y = p.y; x = p.z; data[3] = 1.0f;
x = p.x; y = p.y; z = p.z; data[3] = 1.0f;
intensity = p.intensity;
intensity_variance = p.intensity_variance;
height_variance = p.height_variance;
Expand Down
2 changes: 1 addition & 1 deletion examples/segmentation/example_cpc_segmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ CPCSegmentation Parameters: \n\
const unsigned char concave_color [3] = {255, 0, 0};
const unsigned char cut_color [3] = { 0,255, 0};
const unsigned char* convex_color = bg_white ? black_color : white_color;
const unsigned char* color;
const unsigned char* color = NULL;

//The vertices in the supervoxel adjacency list are the supervoxel centroids
//This iterates through them, finding the edges
Expand Down
2 changes: 1 addition & 1 deletion features/include/pcl/features/impl/vfh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ template <typename PointInT, typename PointNT, typename PointOutT> void
pcl::VFHEstimation<PointInT, PointNT, PointOutT>::computeFeature (PointCloudOut &output)
{
// ---[ Step 1a : compute the centroid in XYZ space
Eigen::Vector4f xyz_centroid;
Eigen::Vector4f xyz_centroid (0, 0, 0, 0);

if (use_given_centroid_)
xyz_centroid = centroid_to_use_;
Expand Down
2 changes: 1 addition & 1 deletion registration/include/pcl/registration/impl/ia_fpcs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ pcl::registration::FPCSInitialAlignment <PointSource, PointTarget, NormalT, Scal
{
float dist_sqr_1 = pcl::squaredEuclideanDistance (target_->points[*it_base], centre_pt_base);
float best_diff_sqr = FLT_MAX;
int best_index;
int best_index = -1;

for (it_match = copy.begin (); it_match != it_match_e; it_match++)
{
Expand Down
2 changes: 1 addition & 1 deletion surface/include/pcl/surface/impl/concave_hull.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pcl::ConcaveHull<PointInT>::performReconstruction (PointCloud &alpha_shape, std:
{
Eigen::Vector4d xyz_centroid;
compute3DCentroid (*input_, *indices_, xyz_centroid);
EIGEN_ALIGN16 Eigen::Matrix3d covariance_matrix;
EIGEN_ALIGN16 Eigen::Matrix3d covariance_matrix = Eigen::Matrix3d::Zero ();
computeCovarianceMatrixNormalized (*input_, *indices_, xyz_centroid, covariance_matrix);

// Check if the covariance matrix is finite or not.
Expand Down
2 changes: 1 addition & 1 deletion surface/include/pcl/surface/impl/convex_hull.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pcl::ConvexHull<PointInT>::calculateInputDimension ()
PCL_DEBUG ("[pcl::%s::calculateInputDimension] WARNING: Input dimension not specified. Automatically determining input dimension.\n", getClassName ().c_str ());
Eigen::Vector4d xyz_centroid;
compute3DCentroid (*input_, *indices_, xyz_centroid);
EIGEN_ALIGN16 Eigen::Matrix3d covariance_matrix;
EIGEN_ALIGN16 Eigen::Matrix3d covariance_matrix = Eigen::Matrix3d::Zero ();
computeCovarianceMatrixNormalized (*input_, *indices_, xyz_centroid, covariance_matrix);

EIGEN_ALIGN16 Eigen::Vector3d eigen_values;
Expand Down

0 comments on commit 7acc1e0

Please sign in to comment.