Skip to content

Commit

Permalink
COMP: Fix warnings unused type and unreachable value
Browse files Browse the repository at this point in the history
`-Wtype-limits <0 always false`
`-Wunused-local-typedefs ValueType`
  • Loading branch information
phcerdan authored and dzenanz committed Jun 7, 2022
1 parent 06f35fa commit 2b0463e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion include/itkIsotropicWaveletFrequencyFunction.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ IsotropicWaveletFrequencyFunction<TFunctionValue, VImageDimension, TInput>::Eval
{
return this->EvaluateForwardLowPassFilter(freq_norm_in_hz);
}
if (j > this->m_HighPassSubBands || j < 0)
if (j > this->m_HighPassSubBands)
{
itkExceptionMacro(<< "Invalid sub-band.");
}
Expand Down
2 changes: 0 additions & 2 deletions test/itkRieszRotationMatrixTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ runRieszRotationMatrixInterfaceWithRieszFrequencyFilterBankGeneratorTest()
{
constexpr unsigned int Dimension = 2;
// Create a rotation matrix
using ValueType = std::complex<double>;
using SteerableMatrix = itk::RieszRotationMatrix<Dimension>;
using SpatialRotationMatrix = SteerableMatrix::SpatialRotationMatrixType;
SpatialRotationMatrix R;
Expand Down Expand Up @@ -227,7 +226,6 @@ runRieszRotationMatrixTest()
bool testPassed = true;
const unsigned int Dimension = VDimension;

using ValueType = std::complex<double>;
using SteerableMatrix = itk::RieszRotationMatrix<Dimension>;
using SpatialRotationMatrix = typename SteerableMatrix::SpatialRotationMatrixType;

Expand Down

0 comments on commit 2b0463e

Please sign in to comment.