Skip to content

Commit

Permalink
COMP: fixed some dashboard warnings (dead code, false positive)
Browse files Browse the repository at this point in the history
Change-Id: I435cfb9093868bbd2f59b72f03b3843c971f4211
  • Loading branch information
seanm committed Feb 9, 2016
1 parent dfbd836 commit d3af33c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Modules/Core/GPUCommon/src/itkGPUKernelManager.cxx
Expand Up @@ -271,7 +271,6 @@ cl_int GPUKernelManager::GetKernelWorkGroupInfo(int kernelIdx,
break;
default:
itkGenericExceptionMacro (<< "Unknown type of work goup information");
break;
}

cl_int errid = clGetKernelWorkGroupInfo(m_KernelContainer[kernelIdx], m_Manager->GetDeviceId(0),
Expand All @@ -296,7 +295,6 @@ cl_int GPUKernelManager::GetDeviceInfo(
break;
default:
itkGenericExceptionMacro (<< "Unknown type of device info");
break;
}
OpenCLCheckError(errid, __FILE__, __LINE__, ITK_LOCATION);

Expand Down
7 changes: 4 additions & 3 deletions Modules/IO/HDF5/src/itkHDF5ImageIO.cxx
Expand Up @@ -207,12 +207,13 @@ ComponentToPredType(ImageIOBase::IOComponentType cType)
return H5::PredType::NATIVE_FLOAT;
case ImageIOBase::DOUBLE:
return H5::PredType::NATIVE_DOUBLE;
default:
case ImageIOBase::UNKNOWNCOMPONENTTYPE:
itkGenericExceptionMacro(<< "unsupported IOComponentType"
<< cType);
}
// never reached but silences warning.
return H5::PredType::NATIVE_UCHAR;

itkGenericExceptionMacro(<< "unsupported IOComponentType"
<< cType);
}

std::string
Expand Down
15 changes: 15 additions & 0 deletions Modules/Numerics/Statistics/include/itkSubsample.h
Expand Up @@ -73,12 +73,27 @@ class Subsample:
* object */
typedef std::vector< InstanceIdentifier > InstanceIdentifierHolder;

// Disable clang warning false positive.
// <https://llvm.org/bugs/show_bug.cgi?id=22582>
#if defined(__clang__) && defined(__has_warning)
# if __has_warning("-Winconsistent-missing-override")
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Winconsistent-missing-override"
# endif
#endif

/** Get the Id Holder */
virtual const InstanceIdentifierHolder & GetIdHolder() const
{
return this->m_IdHolder;
}

#if defined(__clang__) && defined(__has_warning)
# if __has_warning("-Winconsistent-missing-override")
# pragma clang diagnostic pop
# endif
#endif

/** Plug in the actual sample data */
void SetSample(const TSample *sample);

Expand Down

0 comments on commit d3af33c

Please sign in to comment.