From 8b922143033e5a877ff6cadee4fc6054e6a71748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Thu, 18 Jan 2024 08:32:12 -0500 Subject: [PATCH 1/2] COMP: Fix compile warning C4858: discarding return value in std::remove C:\Dev\ANTs\Examples\sccan.cxx(2593,8): warning C4858: discarding return value: The 'remove' and 'remove_if' algorithms return the iterator past the last element that should be kept. You need to call container.erase(result, container.end()) afterwards. In C++20, 'std::erase' and 'std::erase_if' are simpler replacements for these two steps. --- Examples/sccan.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/sccan.cxx b/Examples/sccan.cxx index 8d44d2ee0..02aa55967 100644 --- a/Examples/sccan.cxx +++ b/Examples/sccan.cxx @@ -2590,7 +2590,7 @@ sccan(std::vector args, std::ostream * /*out_stream = nullptr */) // which the sccanparser should handle args.insert(args.begin(), "sccan"); - std::remove(args.begin(), args.end(), std::string("")); + std::ignore = std::remove(args.begin(), args.end(), std::string("")); int argc = args.size(); char ** argv = new char *[args.size() + 1]; for (unsigned int i = 0; i < args.size(); ++i) From 43aa7dd59c0ec1480171cf5fa2906efd13e802c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Thu, 18 Jan 2024 08:34:21 -0500 Subject: [PATCH 2/2] ENH: Use the latest ITK version --- SuperBuild/External_ITKv5.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SuperBuild/External_ITKv5.cmake b/SuperBuild/External_ITKv5.cmake index a6f5e402c..eb43ddda7 100644 --- a/SuperBuild/External_ITKv5.cmake +++ b/SuperBuild/External_ITKv5.cmake @@ -152,7 +152,7 @@ if(NOT DEFINED ${extProjName}_DIR AND NOT ${USE_SYSTEM_${extProjName}}) ### --- End Project specific additions set(${proj}_REPOSITORY ${git_protocol}://github.com/InsightSoftwareConsortium/ITK.git) - set(${proj}_GIT_TAG d45127b5a3296b7f1721b57e0ffe8e0071d0c64f) # 2023-12-27 + set(${proj}_GIT_TAG 66ab5b14c476d057ed46a4daba05b710681160e6) # 2024-01-17 set(ITK_VERSION_ID ITK-5.4) ### NOTE: When updating GIT_TAG, also update ITK_VERSION_ID if ITK version has changed ExternalProject_Add(${proj}