aboutsummaryrefslogtreecommitdiff
path: root/devel/libffi/(developers-only)
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-09-14 11:33:09 +0000
committerDimitry Andric <dim@FreeBSD.org>2024-09-28 09:46:34 +0000
commitc42de78032ea24d6431412e2aec35383c3c66a34 (patch)
treef847df00f03a46c07be45b6db2268d2f2bfce309 /devel/libffi/(developers-only)
parentc1c4aae636e9e8c5fc146caeb9ad734e20f97115 (diff)
downloadports-c42de78032ea24d6431412e2aec35383c3c66a34.tar.gz
ports-c42de78032ea24d6431412e2aec35383c3c66a34.zip
security/olm: fix build with clang 19
Clang 19 has become more strict about assigning to const variables, resulting in an error similar to: /wrkdirs/usr/ports/security/olm/work/olm-6d767aaf29bdf15571c2ef4d3f8f9e953de03733/include/olm/list.hh:106:13: error: cannot assign to variable 'other_pos' with const-qualified type 'T *const' 106 | ++other_pos; | ^ ~~~~~~~~~ /wrkdirs/usr/ports/security/olm/work/olm-6d767aaf29bdf15571c2ef4d3f8f9e953de03733/include/olm/list.hh:102:19: note: variable 'other_pos' declared const here 102 | T * const other_pos = other._data; | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In this case, it looks like a typo: "T * const" means that the pointer itself is const, thus it cannot be incremented. Instead, this should be "T const *" (spelled alternatively as "const T *"), which means that the object pointed to is const, not the pointer itself. PR: 281496 Approved by: maintainer timeout (2 weeks) MFH: 2024Q3
Diffstat (limited to 'devel/libffi/(developers-only)')
0 files changed, 0 insertions, 0 deletions