Skip to content

Commit

Permalink
Suppress (maybe) uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRAgostinho committed Nov 10, 2017
1 parent 6652c1a commit 2f7749d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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 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

0 comments on commit 2f7749d

Please sign in to comment.