forked from pool/paraview
Add paraview-gcc11-limits.patch: Include limits header wherever needed to fix compilation with GCC 11 [https://gitlab.kitware.com/vtk/vtk/-/issues/18194]. OBS-URL: https://build.opensuse.org/request/show/896983 OBS-URL: https://build.opensuse.org/package/show/science/paraview?expand=0&rev=94
49 lines
1.7 KiB
Diff
49 lines
1.7 KiB
Diff
Index: ParaView-v5.9.1/VTK/Common/Core/vtkGenericDataArrayLookupHelper.h
|
|
===================================================================
|
|
--- ParaView-v5.9.1.orig/VTK/Common/Core/vtkGenericDataArrayLookupHelper.h
|
|
+++ ParaView-v5.9.1/VTK/Common/Core/vtkGenericDataArrayLookupHelper.h
|
|
@@ -25,6 +25,7 @@
|
|
#include "vtkIdList.h"
|
|
#include <algorithm>
|
|
#include <cmath>
|
|
+#include <limits>
|
|
#include <unordered_map>
|
|
#include <vector>
|
|
|
|
Index: ParaView-v5.9.1/VTK/Rendering/Core/vtkColorTransferFunction.cxx
|
|
===================================================================
|
|
--- ParaView-v5.9.1.orig/VTK/Rendering/Core/vtkColorTransferFunction.cxx
|
|
+++ ParaView-v5.9.1/VTK/Rendering/Core/vtkColorTransferFunction.cxx
|
|
@@ -21,6 +21,7 @@
|
|
#include <algorithm>
|
|
#include <cmath>
|
|
#include <iterator>
|
|
+#include <limits>
|
|
#include <set>
|
|
#include <vector>
|
|
|
|
Index: ParaView-v5.9.1/VTK/Common/DataModel/vtkPiecewiseFunction.cxx
|
|
===================================================================
|
|
--- ParaView-v5.9.1.orig/VTK/Common/DataModel/vtkPiecewiseFunction.cxx
|
|
+++ ParaView-v5.9.1/VTK/Common/DataModel/vtkPiecewiseFunction.cxx
|
|
@@ -22,6 +22,7 @@
|
|
#include <cassert>
|
|
#include <cmath>
|
|
#include <iterator>
|
|
+#include <limits>
|
|
#include <set>
|
|
#include <vector>
|
|
|
|
Index: ParaView-v5.9.1/VTK/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
|
|
===================================================================
|
|
--- ParaView-v5.9.1.orig/VTK/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
|
|
+++ ParaView-v5.9.1/VTK/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
|
|
@@ -27,6 +27,7 @@
|
|
#include "vtkHyperTreeGridNonOrientedCursor.h"
|
|
|
|
#include <cmath>
|
|
+#include <limits>
|
|
|
|
vtkStandardNewMacro(vtkHyperTreeGridThreshold);
|
|
|