Skip to content

Commit 5783aa0

Browse files
authored
Merge pull request #2556 from SergioRAgostinho/suppress-warnings
Suppress miscelanious warnings
2 parents 5efd95a + 2ac5f85 commit 5783aa0

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

apps/cloud_composer/src/properties_model.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ pcl::cloud_composer::PropertiesModel::copyProperties (const PropertiesModel* to_
111111
for (int i=0; i < to_copy->rowCount (); ++i){
112112
QList <QStandardItem*> new_row;
113113
QStandardItem* parent = to_copy->item(i,0);
114-
QModelIndex parent_index = to_copy->index(i,0);
115114
qDebug () << "Copying "<<parent->text()<< " cols ="<<to_copy->columnCount ();
116115
new_row.append (parent->clone ());
117116
for (int j=1; j < to_copy->columnCount (); ++j)

io/src/dinast_grabber.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,12 @@ pcl::DinastGrabber::setupDevice (int device_position, const int id_vendor, const
125125
sstream << "[pcl::DinastGrabber::setupDevice] libusb initialization failure, LIBUSB_ERROR: "<< ret;
126126
PCL_THROW_EXCEPTION (pcl::IOException, sstream.str ());
127127
}
128-
129-
libusb_set_debug (context_, 3);
128+
129+
#if defined(LIBUSB_API_VERSION) && (LIBUSB_API_VERSION >= 0x01000106)
130+
libusb_set_option (context_, LIBUSB_OPTION_LOG_LEVEL, 3);
131+
#else
132+
libusb_set_debug (context_, 3);
133+
#endif
130134
libusb_device **devs = NULL;
131135

132136
// Get the list of USB devices

io/src/obj_io.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ pcl::OBJReader::readHeader (const std::string &file_name, pcl::PCLPointCloud2 &c
395395
if (line[0] == 'v')
396396
{
397397
// Vertex (v)
398-
if ((line[1] == ' ')) {
398+
if (line[1] == ' ') {
399399
++nr_point;
400400
continue;
401401
}

io/src/pcd_io.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ pcl::PCDReader::readHeader (std::istream &fs, pcl::PCLPointCloud2 &cloud,
373373
}
374374
}
375375

376-
if (int (cloud.width * cloud.height) != nr_points)
376+
if (cloud.width * cloud.height != nr_points)
377377
{
378378
PCL_ERROR ("[pcl::PCDReader::readHeader] HEIGHT (%d) x WIDTH (%d) != number of points (%d)\n", cloud.height, cloud.width, nr_points);
379379
return (-1);

registration/include/pcl/registration/impl/ia_kfpcs.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pcl::registration::KFPCSInitialAlignment <PointSource, PointTarget, NormalT, Sca
8383

8484
// generate a subset of indices of size ransac_iterations_ on which to evaluate candidates on
8585
std::size_t nr_indices = indices_->size ();
86-
if (nr_indices < ransac_iterations_)
86+
if (nr_indices < size_t (ransac_iterations_))
8787
indices_validation_ = indices_;
8888
else
8989
for (int i = 0; i < ransac_iterations_; i++)

surface/include/pcl/surface/impl/concave_hull.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ pcl::ConcaveHull<PointInT>::performReconstruction (PointCloud &alpha_shape, std:
242242
int max_vertex_id = 0;
243243
FORALLvertices
244244
{
245-
if (vertex->id + 1 > max_vertex_id)
245+
if (vertex->id + 1 > unsigned (max_vertex_id))
246246
max_vertex_id = vertex->id + 1;
247247
}
248248

0 commit comments

Comments
 (0)