summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-09-08 10:57:41 +0200
committerDimitry Andric <dim@FreeBSD.org>2024-09-28 11:42:56 +0200
commit5a269b5cd4965710fa4e02fdb1cc2ffe6def6921 (patch)
treecfc37b97a6bc54312f74fd46e9f5ffbb5b4e0e75
parentnet-p2p/cardano-node: Update to 9.2.1 (diff)
graphics/vigra: fix build with clang 19
Clang 19 is more strict about manipulating `this` in C++, which results in an error compiling graphics/vigra: /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/multi_iterator_coupled.hxx:493:9: error: expression is not assignable 493 | --this; | ^ ~~~~ Here, the intent is to call the prefix operator-- on the object, which should be spelled either "--*this" or "operator--()". PR: 281358 Approved by: maintainer timeout (2 weeks) MFH: 2024Q3
-rw-r--r--graphics/vigra/files/patch-include_vigra_multi__iterator__coupled.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/vigra/files/patch-include_vigra_multi__iterator__coupled.hxx b/graphics/vigra/files/patch-include_vigra_multi__iterator__coupled.hxx
new file mode 100644
index 000000000000..b9bfe414615d
--- /dev/null
+++ b/graphics/vigra/files/patch-include_vigra_multi__iterator__coupled.hxx
@@ -0,0 +1,11 @@
+--- include/vigra/multi_iterator_coupled.hxx.orig 2018-10-19 16:12:20 UTC
++++ include/vigra/multi_iterator_coupled.hxx
+@@ -490,7 +490,7 @@ class CoupledScanOrderIterator<N, HANDLES, 0>
+ CoupledScanOrderIterator operator--(int)
+ {
+ CoupledScanOrderIterator res(*this);
+- --this;
++ --*this;
+ return res;
+ }
+