InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.37k stars 660 forks source link

COMP: Ubuntu2404 fixes issue 4607 #4608

Closed hjmjohnson closed 2 months ago

hjmjohnson commented 2 months ago

Fixes for 100's of warnings presented by the gcc 13.2 compiler under the upcoming Ubuntu 24.04 LTS release.

This does not fix all of the issues, but is for comparison against the master branch build

https://open.cdash.org/builds/9565813

Additional information

Related to issue #4607

These new compiler warnings are due to increased default security settings in Ubuntu 24.04.

https://ubuntu.com/blog/whats-new-in-security-for-ubuntu-24-04-lts#:~:text=Overall%2C%20the%20vast%20range%20of,most%20secure%20release%20to%20date.

PR Checklist

Refer to the ITK Software Guide for further development details if necessary.

hjmjohnson commented 2 months ago

/azp run ITK.Linux

hjmjohnson commented 2 months ago

This allows for clean building on the latest Ubuntu 24.04 release with GCC 13.2.

hjmjohnson commented 2 months ago

@thewtex I assume we want 5.4.0 to build cleanly on Ubuntu 24.04. This is a lot of small changes, but I think they are appropriate for 5.4.0.

I'll let you merge, or change the milestone. If you change the milestone, please convert to a draft.