Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMP: Add missing semicolons to ITK macro calls #1227

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

N-Dekker
Copy link
Member

Aims to resolve issue #1224 "Missing semicolons causing compile issues with some compilers".

ITK has become stricter with respect to those semicolons from ITK pull request InsightSoftwareConsortium/ITK#4706 commit InsightSoftwareConsortium/ITK@55e2339 "ENH: Default to allow ITK_MACROEND_NOOP_STATEMENT", Hans Johnson, June 4, 2024.

Aims to resolve issue #1224 "Missing semicolons causing compile issues with some compilers".

ITK has become stricter with respect to those semicolons from ITK pull request InsightSoftwareConsortium/ITK#4706 commit InsightSoftwareConsortium/ITK@55e2339 "ENH: Default to allow ITK_MACROEND_NOOP_STATEMENT", Hans Johnson, June 4, 2024.

Co-authored-by: Wildcarde <[email protected]>
@N-Dekker
Copy link
Member Author

@Wildcarde Is it OK that I mentioned you as co-author of the commit?

Comment on lines -114 to +123
itkSetMacro(GradientMagnitudeTolerance, double)

/** Setting: a stopping criterion, the value tolerance. By default 1e-5.
*
* The optimizer stops when
* \f[ 2.0 * | f_k - f_{k-1} | \le
* ValueTolerance * ( |f_k| + |f_{k-1}| + 1e-20 ) \f]
* is satisfied MaxNrOfItWithoutImprovement times in a row.
*/
itkGetConstMacro(ValueTolerance, double);
itkSetMacro(GradientMagnitudeTolerance, double);

/** Setting: a stopping criterion, the value tolerance. By default 1e-5.
*
* The optimizer stops when
* \f[ 2.0 * | f_k - f_{k-1} | \le
* ValueTolerance * ( |f_k| + |f_{k-1}| + 1e-20 ) \f]
* is satisfied MaxNrOfItWithoutImprovement times in a row.
*/
itkGetConstMacro(ValueTolerance, double);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Wildcarde FYI, I only just applied your patch, but then the automatic source code formatting (clang-format) also made some adjustments, as you see here!

@N-Dekker N-Dekker linked an issue Aug 30, 2024 that may be closed by this pull request
@Wildcarde
Copy link
Contributor

@Wildcarde Is it OK that I mentioned you as co-author of the commit?

yep not a problem at all!

@N-Dekker N-Dekker merged commit 9554422 into main Aug 30, 2024
8 checks passed
@N-Dekker N-Dekker deleted the Add-semicolons-to-ITK-macro-calls branch August 30, 2024 19:47
N-Dekker added a commit that referenced this pull request Aug 30, 2024
- Follow-up to pull request #1227 commit 7b99c20 "COMP: Add missing semicolons to ITK macro calls"
N-Dekker added a commit that referenced this pull request Aug 31, 2024
- Follow-up to pull request #1227 commit 7b99c20 "COMP: Add missing semicolons to ITK macro calls"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing semicolons causing compile issues with some compilers
2 participants