[vtk] patch GCC13 compilation errors (#31447)

This commit is contained in:
Michael MIGLIORE 2023-06-01 03:47:48 +02:00 committed by GitHub
parent 60f251356d
commit 0f1f5200c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 2 deletions

View File

@ -0,0 +1,40 @@
diff --git a/IO/Image/vtkSEPReader.cxx b/IO/Image/vtkSEPReader.cxx
index 2b15bc249e..cec84d1712 100644
--- a/IO/Image/vtkSEPReader.cxx
+++ b/IO/Image/vtkSEPReader.cxx
@@ -34,7 +34,6 @@
#include <vtksys/SystemTools.hxx>
#include <algorithm>
-#include <cstdint>
namespace details
{
diff --git a/IO/Image/vtkSEPReader.h b/IO/Image/vtkSEPReader.h
index 83d127a41e..bdb33a258b 100644
--- a/IO/Image/vtkSEPReader.h
+++ b/IO/Image/vtkSEPReader.h
@@ -25,8 +25,9 @@
#include "vtkImageAlgorithm.h"
#include "vtkNew.h" // for ivars
-#include <array> // for std::array
-#include <string> // for std::string
+#include <array> // for std::array
+#include <cstdint> // for std::uint8_t
+#include <string> // for std::string
namespace details
{
diff --git a/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp b/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp
index 6267684218..cf19b83af4 100644
--- a/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp
+++ b/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp
@@ -31,6 +31,7 @@
/*! @cond Doxygen_Suppress */
+#include <cstdint>
#include <vector>
#include <string>

View File

@ -40,6 +40,7 @@ vcpkg_from_github(
iotr.patch
${STRING_PATCH}
9690.diff
missing-include-fixes.patch
)
# =============================================================================

View File

@ -1,7 +1,7 @@
{
"name": "vtk",
"version-semver": "9.2.0-pv5.11.0",
"port-version": 6,
"port-version": 7,
"description": "Software system for 3D computer graphics, image processing, and visualization",
"homepage": "https://github.com/Kitware/VTK",
"license": "BSD-3-Clause",

View File

@ -8482,7 +8482,7 @@
},
"vtk": {
"baseline": "9.2.0-pv5.11.0",
"port-version": 6
"port-version": 7
},
"vtk-dicom": {
"baseline": "0.8.14",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9ec376669498a8b43b3dc1779386dcc383d7cc1f",
"version-semver": "9.2.0-pv5.11.0",
"port-version": 7
},
{
"git-tree": "340d82faf130e467fb4ed6d5e8ce5bf93101513e",
"version-semver": "9.2.0-pv5.11.0",