summaryrefslogtreecommitdiff
path: root/dev-libs/olm/files/olm-3.2.16-clang-19-const.patch
blob: 688e3290fb3765dc1dde964c4989e8d1156fbdcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Fixes compilation on Clang 19.
Patch by Marco Rebhan <me@dblsaiko.net>
Fixes https://bugs.gentoo.org/940764

Signed-off-by: Gavin D. Howard <gavin@gavinhoward.com>

--- a/include/olm/list.hh
+++ b/include/olm/list.hh
@@ -99,7 +99,7 @@ public:
             return *this;
         }
         T * this_pos = _data;
-        T * const other_pos = other._data;
+        T const * other_pos = other._data;
         while (other_pos != other._end) {
             *this_pos = *other;
             ++this_pos;