aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/poissonrecon/disable-gcc5-checks.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/poissonrecon/disable-gcc5-checks.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/poissonrecon/disable-gcc5-checks.patch')
-rw-r--r--vcpkg/ports/poissonrecon/disable-gcc5-checks.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/poissonrecon/disable-gcc5-checks.patch b/vcpkg/ports/poissonrecon/disable-gcc5-checks.patch
new file mode 100644
index 0000000..c517b3e
--- /dev/null
+++ b/vcpkg/ports/poissonrecon/disable-gcc5-checks.patch
@@ -0,0 +1,47 @@
+diff --git a/Src/FEMTree.WeightedSamples.inl b/Src/FEMTree.WeightedSamples.inl
+index 7b0d6b4..bb3ad0f 100644
+--- a/Src/FEMTree.WeightedSamples.inl
++++ b/Src/FEMTree.WeightedSamples.inl
+@@ -362,7 +362,7 @@ Real FEMTree< Dim , Real >::_splatPointData( Allocator< FEMTreeNode > *nodeAlloc
+ // pow( width , -dim ): So that each sample is splatted with a unit volume
+ V _v = v * weight / Real( pow( width , dim ) ) * dx;
+ // V _v = v / Length(v) * dx;
+-#if defined( __GNUC__ ) && __GNUC__ < 5
++#if defined( __GNUC__ ) && __GNUC__ < 5 && 0
+ #ifdef SHOW_WARNINGS
+ #warning "you've got me gcc version<5"
+ #endif // SHOW_WARNINGS
+diff --git a/Src/FEMTree.h b/Src/FEMTree.h
+index 8f00045..2faa0f4 100644
+--- a/Src/FEMTree.h
++++ b/Src/FEMTree.h
+@@ -231,6 +231,7 @@ template< class Data , typename Pack > struct _SparseOrDenseNodeData{};
+ template< class Data , unsigned int ... FEMSigs >
+ struct _SparseOrDenseNodeData< Data , UIntPack< FEMSigs ... > >
+ {
++ virtual ~_SparseOrDenseNodeData() {}
+ static const unsigned int Dim = sizeof ... ( FEMSigs );
+ typedef UIntPack< FEMSigs ... > FEMSignatures;
+ typedef Data data_type;
+diff --git a/Src/FEMTree.inl b/Src/FEMTree.inl
+index 814f1ae..405e996 100644
+--- a/Src/FEMTree.inl
++++ b/Src/FEMTree.inl
+@@ -425,7 +425,7 @@ SparseNodeData< OutData , UIntPack< DataSigs ... > > FEMTree< Dim , Real >::setI
+ AddAtomic( weightSum , sample.weight );
+ out *= sample.weight;
+ Allocator< FEMTreeNode > *nodeAllocator = nodeAllocators.size() ? nodeAllocators[ thread ] : NULL;
+-#if defined( __GNUC__ ) && __GNUC__ < 5
++#if defined( __GNUC__ ) && __GNUC__ < 5 && 0
+ #ifdef SHOW_WARNINGS
+ #warning "you've got me gcc version<5"
+ #endif // SHOW_WARNINGS
+@@ -436,7 +436,7 @@ SparseNodeData< OutData , UIntPack< DataSigs ... > > FEMTree< Dim , Real >::setI
+ else
+ {
+ Real width = (Real)( 1.0 / ( 1<<maxDepth ) );
+-#if defined( __GNUC__ ) && __GNUC__ < 5
++#if defined( __GNUC__ ) && __GNUC__ < 5 && 0
+ #ifdef SHOW_WARNINGS
+ #warning "you've got me gcc version<5"
+ #endif // SHOW_WARNINGS