Skip to content

Commit

Permalink
COMP: Fix clang compile warnings
Browse files Browse the repository at this point in the history
Examples/Statistics/ScalarImageKmeansClassifier.cxx:167:9: warning: unused type alias 'OutputImageType' [-Wunused-local-typedef]

Examples/Statistics/ScalarImageKmeansModelEstimator.cxx:68:16: warning: declaration shadows a local variable [-Wshadow]
  • Loading branch information
dzenanz committed Jan 31, 2025
1 parent f47cc64 commit ecdcafd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Examples/Statistics/ScalarImageKmeansClassifier.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,12 @@ main(int argc, char * argv[])
// The \doxygen{ScalarImageKmeansImageFilter} is predefined for producing an
// 8 bits scalar image as output. This output image contains labels
// associated to each one of the classes in the K-Means algorithm. In the
// following lines we use the \code{OutputImageType}to write the output of
// the classification filter to file.
// following lines we write the output of the classification filter to file.
//
// Software Guide : EndLatex


// Software Guide : BeginCodeSnippet
using OutputImageType = KMeansFilterType::OutputImageType;
try
{
itk::WriteImage(kmeansFilter->GetOutput(), outputImageFileName);
Expand Down
2 changes: 1 addition & 1 deletion Examples/Statistics/ScalarImageKmeansModelEstimator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ main(int argc, char * argv[])
ImageType::Pointer input;
try
{
const auto input = itk::ReadImage<ImageType>(argv[1]);
input = itk::ReadImage<ImageType>(argv[1]);
}
catch (const itk::ExceptionObject & excp)
{
Expand Down

0 comments on commit ecdcafd

Please sign in to comment.