Skip to content

Commit 31e8d30

Browse files
authored
Merge pull request #4064 from SunBlack/unused_variables
Remove unused variables from exceptions
2 parents 32e61b5 + c9461c5 commit 31e8d30

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

common/include/pcl/common/impl/io.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ copyPointCloud (const pcl::PointCloud<PointT> &cloud_in, pcl::PointCloud<PointT>
423423
cloud_out.width * sizeof (PointT));
424424
}
425425
}
426-
catch (pcl::BadArgumentException &e)
426+
catch (pcl::BadArgumentException&)
427427
{
428428
PCL_ERROR ("[pcl::copyPointCloud] Unhandled interpolation type %d!\n", border_type);
429429
}

gpu/people/src/face_detector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pcl::gpu::people::FaceDetector::loadFromXML2(const std::string
102102
{
103103
read_xml(filename,pt);
104104
}
105-
catch(boost::exception const& exb)
105+
catch(boost::exception const&)
106106
{
107107
PCL_DEBUG("[pcl::gpu::people::FaceDetector::loadFromXML2] : (D) : Unable to read filename with boost exception\n");
108108
return NCV_HAAR_XML_LOADING_EXCEPTION;
@@ -301,7 +301,7 @@ pcl::gpu::people::FaceDetector::loadFromXML2(const std::string
301301
level1++;
302302
}
303303
}
304-
catch(boost::exception const& exb)
304+
catch(boost::exception const&)
305305
{
306306
PCL_DEBUG("[pcl::gpu::people::FaceDetector::loadFromXML2] : (D) : Unable to process content with boost exception\n");
307307
return (NCV_HAAR_XML_LOADING_EXCEPTION);

io/src/hdl_grabber.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ pcl::HDLGrabber::start ()
507507
}
508508
hdl_read_socket_ = new udp::socket (hdl_read_socket_service_, udp_listener_endpoint_);
509509
}
510-
catch (const std::exception& bind)
510+
catch (const std::exception&)
511511
{
512512
delete hdl_read_socket_;
513513
hdl_read_socket_ = new udp::socket (hdl_read_socket_service_, udp::endpoint (boost::asio::ip::address_v4::any (), udp_listener_endpoint_.port ()));

io/src/lzf_image_io.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pcl::io::LZFImageWriter::writeParameter (const double &parameter,
187187
{
188188
boost::property_tree::xml_parser::read_xml (filename, pt, boost::property_tree::xml_parser::trim_whitespace);
189189
}
190-
catch (std::exception& e)
190+
catch (std::exception&)
191191
{}
192192

193193
pt.put (tag, parameter);
@@ -206,7 +206,7 @@ pcl::io::LZFDepth16ImageWriter::writeParameters (const pcl::io::CameraParameters
206206
{
207207
boost::property_tree::xml_parser::read_xml (filename, pt, boost::property_tree::xml_parser::trim_whitespace);
208208
}
209-
catch (std::exception& e)
209+
catch (std::exception&)
210210
{}
211211

212212
pt.put ("depth.focal_length_x", parameters.focal_length_x);
@@ -266,7 +266,7 @@ pcl::io::LZFRGB24ImageWriter::writeParameters (const pcl::io::CameraParameters &
266266
{
267267
boost::property_tree::xml_parser::read_xml (filename, pt, boost::property_tree::xml_parser::trim_whitespace);
268268
}
269-
catch (std::exception& e)
269+
catch (std::exception&)
270270
{}
271271

272272
pt.put ("rgb.focal_length_x", parameters.focal_length_x);

io/src/obj_io.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::PCLPointCloud2 &cloud,
573573
}
574574
++point_idx;
575575
}
576-
catch (const boost::bad_lexical_cast &e)
576+
catch (const boost::bad_lexical_cast&)
577577
{
578578
PCL_ERROR ("Unable to convert %s to vertex coordinates!", line.c_str ());
579579
return (-1);
@@ -602,7 +602,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::PCLPointCloud2 &cloud,
602602
}
603603
++normal_idx;
604604
}
605-
catch (const boost::bad_lexical_cast &e)
605+
catch (const boost::bad_lexical_cast&)
606606
{
607607
PCL_ERROR ("Unable to convert line %s to vertex normal!", line.c_str ());
608608
return (-1);
@@ -715,7 +715,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::TextureMesh &mesh,
715715
}
716716
++v_idx;
717717
}
718-
catch (const boost::bad_lexical_cast &e)
718+
catch (const boost::bad_lexical_cast&)
719719
{
720720
PCL_ERROR ("Unable to convert %s to vertex coordinates!", line.c_str ());
721721
return (-1);
@@ -736,7 +736,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::TextureMesh &mesh,
736736
}
737737
++vn_idx;
738738
}
739-
catch (const boost::bad_lexical_cast &e)
739+
catch (const boost::bad_lexical_cast&)
740740
{
741741
PCL_ERROR ("Unable to convert line %s to vertex normal!", line.c_str ());
742742
return (-1);
@@ -757,7 +757,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::TextureMesh &mesh,
757757
coordinates.emplace_back(c[0]/c[2], c[1]/c[2]);
758758
++vt_idx;
759759
}
760-
catch (const boost::bad_lexical_cast &e)
760+
catch (const boost::bad_lexical_cast&)
761761
{
762762
PCL_ERROR ("Unable to convert line %s to texture coordinates!", line.c_str ());
763763
return (-1);
@@ -905,7 +905,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::PolygonMesh &mesh,
905905
}
906906
++v_idx;
907907
}
908-
catch (const boost::bad_lexical_cast &e)
908+
catch (const boost::bad_lexical_cast&)
909909
{
910910
PCL_ERROR ("Unable to convert %s to vertex coordinates!", line.c_str ());
911911
return (-1);
@@ -927,7 +927,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::PolygonMesh &mesh,
927927
}
928928
++vn_idx;
929929
}
930-
catch (const boost::bad_lexical_cast &e)
930+
catch (const boost::bad_lexical_cast&)
931931
{
932932
PCL_ERROR ("Unable to convert line %s to vertex normal!", line.c_str ());
933933
return (-1);

0 commit comments

Comments
 (0)