gentoo/dev-libs/olm/files/olm-3.2.16-clang-19-const.patch
Gavin D. Howard 0b5a324bd3
dev-libs/olm: fix compilation on Clang 19
Bug: https://bugs.gentoo.org/940764
Signed-off-by: Gavin D. Howard <gavin@gavinhoward.com>
Closes: https://github.com/gentoo/gentoo/pull/38900
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2024-10-19 10:27:54 +03:00

18 lines
501 B
Diff

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;