Skip to content

Commit 4927d96

Browse files
committed
COMP: fix compile errors by aggressive code cleanup
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
1 parent a9e11bd commit 4927d96

File tree

2 files changed

+3
-4
lines changed
  • src/Filtering
    • LabelMap/ShapeAttributesForBinaryImage
    • Thresholding/DemonstrateThresholdAlgorithms

2 files changed

+3
-4
lines changed

src/Filtering/LabelMap/ShapeAttributesForBinaryImage/Code.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static void
2525
CreateImage(TImage * image);
2626

2727
int
28-
main(int argc, char *[])
28+
main(int argc, char * argv[])
2929
{
3030
constexpr unsigned int Dimension = 2;
3131
using PixelType = unsigned char;

src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/Code.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ main(int argc, char * argv[])
5656

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

59-
# ifdef ENABLE_QUICKVIEW
6059
using OutputPixelType = unsigned char;
6160
using OutputImageType = itk::Image<OutputPixelType, 2>;
6261

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

113112

114113
viewer.Visualize();
115-
# else
114+
#else
116115
std::cout << " Example requires compilation with ENABLE_QUICKVIEW defined." << std::endl;
117-
# endif
116+
#endif
118117
return EXIT_SUCCESS;
119118
}

0 commit comments

Comments
 (0)