From c413238ab498a48d5aa32264246955d793641eb4 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Mon, 11 May 2026 08:41:08 -0500 Subject: [PATCH] COMP: Add missing semicolons after ITK macros for ITK6 compat ITK upstream main (v6 prep) wraps macros like itkSetMacro/itkGetMacro/ itkTypeMacro/itkNewMacro with ITK_MACROEND_NOOP_STATEMENT, which requires the user's `;` at the call site. ITK 5.x's macros self-terminated, so the missing `;` was tolerated. Adding `;` is backward-compatible. Without this fix, building against ITK upstream main produces: error: expected ';' before 'const' error: expected ';' before 'typedef' error: expected ';' before 'virtual' --- ...itkDiffusionComplexityMappingImageFilter.h | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/DiffusionComplexityMap/itkDiffusionComplexityMappingImageFilter.h b/DiffusionComplexityMap/itkDiffusionComplexityMappingImageFilter.h index 7a5c604..945a2f8 100644 --- a/DiffusionComplexityMap/itkDiffusionComplexityMappingImageFilter.h +++ b/DiffusionComplexityMap/itkDiffusionComplexityMappingImageFilter.h @@ -51,10 +51,10 @@ class ITK_EXPORT DiffusionComplexityMappingImageFilter: typedef SmartPointer< const Self > ConstPointer; /** Method for creation through the object factory. */ - itkNewMacro(Self) + itkNewMacro(Self); /** Run-time type information (and related methods). */ - itkTypeMacro(DiffusionComplexityMappingImageFilter, ImageToImageFilter) + itkTypeMacro(DiffusionComplexityMappingImageFilter, ImageToImageFilter); typedef typename InputImageType::PixelType InputPixelType; typedef typename OutputImageType::PixelType OutputPixelType; @@ -65,27 +65,27 @@ class ITK_EXPORT DiffusionComplexityMappingImageFilter: void SetDiffusionSpace(const TInputMask* mask); /** Set the q value used in the entropy calculation. */ - itkSetMacro(QValue, float) + itkSetMacro(QValue, float); /** Choose if define the number of bins manually. */ - itkBooleanMacro(UseManualNumberOfBins) - itkSetMacro(UseManualNumberOfBins, bool) + itkBooleanMacro(UseManualNumberOfBins); + itkSetMacro(UseManualNumberOfBins, bool); /** Set the number of bins used in the entropy calculation. */ - itkSetMacro(HistogramBins, unsigned int) + itkSetMacro(HistogramBins, unsigned int); /** Debug mode is used to inform some messages in the standard output. */ - itkBooleanMacro(DebugMode) - itkSetMacro(DebugMode, bool) + itkBooleanMacro(DebugMode); + itkSetMacro(DebugMode, bool); /** Set the disequilibrium function used in the complexity calculation. */ - itkSetMacro(DisequilibriumFunction, unsigned char) + itkSetMacro(DisequilibriumFunction, unsigned char); - itkGetMacro(QValue, float) - itkGetMacro(HistogramBins, unsigned int) - itkGetMacro(UseManualNumberOfBins, bool) - itkGetMacro(DisequilibriumFunction, unsigned char) - itkGetMacro(DebugMode, bool) + itkGetMacro(QValue, float); + itkGetMacro(HistogramBins, unsigned int); + itkGetMacro(UseManualNumberOfBins, bool); + itkGetMacro(DisequilibriumFunction, unsigned char); + itkGetMacro(DebugMode, bool); #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking