Skip to content

Commit

Permalink
COMP: fix compile errors by aggressive code cleanup
Browse files Browse the repository at this point in the history
The errors were introduced by 89a7300.

/home/runner/work/Ex/src/Filtering/LabelMap/ShapeAttributesForBinaryImage/Code.cxx: In function 'int main(int, char**)':
/home/runner/work/Ex/src/Filtering/LabelMap/ShapeAttributesForBinaryImage/Code.cxx:48:16: error: 'argv' was not declared in this scope
     fileName = argv[1];
                ^~~~

../src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/Code.cxx:52:0: error: unterminated #ifdef
  • Loading branch information
dzenanz committed Dec 27, 2021
1 parent a9e11bd commit 4927d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static void
CreateImage(TImage * image);

int
main(int argc, char *[])
main(int argc, char * argv[])
{
constexpr unsigned int Dimension = 2;
using PixelType = unsigned char;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ main(int argc, char * argv[])

const auto input = itk::ReadImage<InputImageType>(argv[1]);

# ifdef ENABLE_QUICKVIEW
using OutputPixelType = unsigned char;
using OutputImageType = itk::Image<OutputPixelType, 2>;

Expand Down Expand Up @@ -112,8 +111,8 @@ main(int argc, char * argv[])


viewer.Visualize();
# else
#else
std::cout << " Example requires compilation with ENABLE_QUICKVIEW defined." << std::endl;
# endif
#endif
return EXIT_SUCCESS;
}

0 comments on commit 4927d96

Please sign in to comment.