Skip to content

Conversation

@hjmjohnson
Copy link
Member

  • COMP: Fix compiler warning about lifetime extension
  • STYLE: Update clang-format to match ITK 2025-11-10

Montage/include/itkPhaseCorrelationOptimizer.h: In static member
function ‘static const
std::initializer_list<itk::PhaseCorrelationOptimizerEnums::PeakInterpolationMethod>
itk::PhaseCorrelationOptimizerEnums::AllPeakInterpolationMethods()’:
Montage/include/itkPhaseCorrelationOptimizer.h:64:12: warning: returning
local ‘initializer_list’ variable ‘methods’ does not extend the lifetime
of the underlying array [-Winit-list-lifetime]
   64 |     return methods;
      |            ^~~~~~~
Montage/include/itkPhaseCorrelationOptimizer.h:57:58: note: declared
here 57 |     const std::initializer_list<PeakInterpolationMethod>
methods{
      |                                                          ^~~~~~~
@dzenanz dzenanz merged commit 9aafc48 into main Nov 11, 2025
41 of 43 checks passed
@dzenanz dzenanz deleted the sync-clang-format branch November 11, 2025 19:25
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.

3 participants