Skip to content

Commit

Permalink
Merge pull request #4064 from SunBlack/unused_variables
Browse files Browse the repository at this point in the history
Remove unused variables from exceptions
  • Loading branch information
kunaltyagi authored May 8, 2020
2 parents 32e61b5 + c9461c5 commit 31e8d30
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion common/include/pcl/common/impl/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ copyPointCloud (const pcl::PointCloud<PointT> &cloud_in, pcl::PointCloud<PointT>
cloud_out.width * sizeof (PointT));
}
}
catch (pcl::BadArgumentException &e)
catch (pcl::BadArgumentException&)
{
PCL_ERROR ("[pcl::copyPointCloud] Unhandled interpolation type %d!\n", border_type);
}
Expand Down
4 changes: 2 additions & 2 deletions gpu/people/src/face_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pcl::gpu::people::FaceDetector::loadFromXML2(const std::string
{
read_xml(filename,pt);
}
catch(boost::exception const& exb)
catch(boost::exception const&)
{
PCL_DEBUG("[pcl::gpu::people::FaceDetector::loadFromXML2] : (D) : Unable to read filename with boost exception\n");
return NCV_HAAR_XML_LOADING_EXCEPTION;
Expand Down Expand Up @@ -301,7 +301,7 @@ pcl::gpu::people::FaceDetector::loadFromXML2(const std::string
level1++;
}
}
catch(boost::exception const& exb)
catch(boost::exception const&)
{
PCL_DEBUG("[pcl::gpu::people::FaceDetector::loadFromXML2] : (D) : Unable to process content with boost exception\n");
return (NCV_HAAR_XML_LOADING_EXCEPTION);
Expand Down
2 changes: 1 addition & 1 deletion io/src/hdl_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ pcl::HDLGrabber::start ()
}
hdl_read_socket_ = new udp::socket (hdl_read_socket_service_, udp_listener_endpoint_);
}
catch (const std::exception& bind)
catch (const std::exception&)
{
delete hdl_read_socket_;
hdl_read_socket_ = new udp::socket (hdl_read_socket_service_, udp::endpoint (boost::asio::ip::address_v4::any (), udp_listener_endpoint_.port ()));
Expand Down
6 changes: 3 additions & 3 deletions io/src/lzf_image_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pcl::io::LZFImageWriter::writeParameter (const double &parameter,
{
boost::property_tree::xml_parser::read_xml (filename, pt, boost::property_tree::xml_parser::trim_whitespace);
}
catch (std::exception& e)
catch (std::exception&)
{}

pt.put (tag, parameter);
Expand All @@ -206,7 +206,7 @@ pcl::io::LZFDepth16ImageWriter::writeParameters (const pcl::io::CameraParameters
{
boost::property_tree::xml_parser::read_xml (filename, pt, boost::property_tree::xml_parser::trim_whitespace);
}
catch (std::exception& e)
catch (std::exception&)
{}

pt.put ("depth.focal_length_x", parameters.focal_length_x);
Expand Down Expand Up @@ -266,7 +266,7 @@ pcl::io::LZFRGB24ImageWriter::writeParameters (const pcl::io::CameraParameters &
{
boost::property_tree::xml_parser::read_xml (filename, pt, boost::property_tree::xml_parser::trim_whitespace);
}
catch (std::exception& e)
catch (std::exception&)
{}

pt.put ("rgb.focal_length_x", parameters.focal_length_x);
Expand Down
14 changes: 7 additions & 7 deletions io/src/obj_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::PCLPointCloud2 &cloud,
}
++point_idx;
}
catch (const boost::bad_lexical_cast &e)
catch (const boost::bad_lexical_cast&)
{
PCL_ERROR ("Unable to convert %s to vertex coordinates!", line.c_str ());
return (-1);
Expand Down Expand Up @@ -602,7 +602,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::PCLPointCloud2 &cloud,
}
++normal_idx;
}
catch (const boost::bad_lexical_cast &e)
catch (const boost::bad_lexical_cast&)
{
PCL_ERROR ("Unable to convert line %s to vertex normal!", line.c_str ());
return (-1);
Expand Down Expand Up @@ -715,7 +715,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::TextureMesh &mesh,
}
++v_idx;
}
catch (const boost::bad_lexical_cast &e)
catch (const boost::bad_lexical_cast&)
{
PCL_ERROR ("Unable to convert %s to vertex coordinates!", line.c_str ());
return (-1);
Expand All @@ -736,7 +736,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::TextureMesh &mesh,
}
++vn_idx;
}
catch (const boost::bad_lexical_cast &e)
catch (const boost::bad_lexical_cast&)
{
PCL_ERROR ("Unable to convert line %s to vertex normal!", line.c_str ());
return (-1);
Expand All @@ -757,7 +757,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::TextureMesh &mesh,
coordinates.emplace_back(c[0]/c[2], c[1]/c[2]);
++vt_idx;
}
catch (const boost::bad_lexical_cast &e)
catch (const boost::bad_lexical_cast&)
{
PCL_ERROR ("Unable to convert line %s to texture coordinates!", line.c_str ());
return (-1);
Expand Down Expand Up @@ -905,7 +905,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::PolygonMesh &mesh,
}
++v_idx;
}
catch (const boost::bad_lexical_cast &e)
catch (const boost::bad_lexical_cast&)
{
PCL_ERROR ("Unable to convert %s to vertex coordinates!", line.c_str ());
return (-1);
Expand All @@ -927,7 +927,7 @@ pcl::OBJReader::read (const std::string &file_name, pcl::PolygonMesh &mesh,
}
++vn_idx;
}
catch (const boost::bad_lexical_cast &e)
catch (const boost::bad_lexical_cast&)
{
PCL_ERROR ("Unable to convert line %s to vertex normal!", line.c_str ());
return (-1);
Expand Down

0 comments on commit 31e8d30

Please sign in to comment.