Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress unused parameter warnings #2067

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Suppress if unused parameter warnings
  • Loading branch information
SergioRAgostinho committed Nov 9, 2017
commit 907365aaef7eeda87d9c25b2784cdfbeb5b6a39c
8 changes: 8 additions & 0 deletions io/include/pcl/io/impl/lzf_image_io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ pcl::io::LZFDepth16ImageReader::readOMP (const std::string &filename,
constant_y = 1.0 / parameters_.focal_length_y;
#ifdef _OPENMP
#pragma omp parallel for num_threads (num_threads)
#else
(void) num_threads; // supress warning if OMP is not present
#endif
for (int i = 0; i < static_cast< int> (cloud.size ()); ++i)
{
Expand Down Expand Up @@ -275,6 +277,8 @@ pcl::io::LZFRGB24ImageReader::readOMP (

#ifdef _OPENMP
#pragma omp parallel for num_threads (num_threads)
#else
(void) num_threads; // supress warning if OMP is not present
#endif//_OPENMP
for (long int i = 0; i < cloud.size (); ++i)
{
Expand Down Expand Up @@ -385,6 +389,8 @@ pcl::io::LZFYUV422ImageReader::readOMP (

#ifdef _OPENMP
#pragma omp parallel for num_threads (num_threads)
#else
(void) num_threads; //suppress warning if OMP is not present
#endif//_OPENMP
for (int i = 0; i < wh2; ++i)
{
Expand Down Expand Up @@ -496,6 +502,8 @@ pcl::io::LZFBayer8ImageReader::readOMP (
cloud.resize (getWidth () * getHeight ());
#ifdef _OPENMP
#pragma omp parallel for num_threads (num_threads)
#else
(void) num_threads; //suppress warning if OMP is not present
#endif//_OPENMP
for (long int i = 0; i < cloud.size (); ++i)
{
Expand Down
2 changes: 1 addition & 1 deletion io/tools/converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
* @param argv[in]
*/
void
displayHelp (int argc,
displayHelp (int,
char** argv)
{
PCL_INFO ("\nUsage: %s [OPTION] SOURCE DEST\n", argv[0]);
Expand Down