From nobody Sat Sep 28 09:49:18 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XG2by74Xmz5X5JV for ; Sat, 28 Sep 2024 09:49:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XG2by4XVHz41rN for ; Sat, 28 Sep 2024 09:49:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727516958; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6cMZ8lz9GgLzwyDBAT7RTOCnZJssqnlIxq2UL4E8SdQ=; b=mr0zcf2bD5qOTXDyyv2j598xifivDqsmgwiCdIcINHY3YoOKK3gM0v1CBdKpkYF75TNDdi TjP060avv3H9Q+d2rh8DiL18lqmkCpRj0hshwYi+hzc/a7I9xgkJf2bIWRz8WUtmxjSEBV OQ+mErgPK/x/qru6LqxaicSWowAZZtqyQPRskOcxfio5PoFoA3+JgjKQCq2VE7jYanhaK1 ziYkhznc3vi9N+86PyTFA2HyIIT5tTHciU6Yqd/keF4vJcJKFwC+C8RayTT1kNgmQv5yZe /17DtdxgKp/CLC7+NH/Jjdl3QgQnnWUj+LfxW5p9/EDxT16hDGxMQWXcEINPUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727516958; a=rsa-sha256; cv=none; b=uqnBz49Lk7js4Qyb260Tnw/626IjYUECW70ngzv90mvZmo5g2lhoK+VLa8oeAUoOcvijyC 7HF3RHtbAEsSOvq+zPDVXHoYw08DmHHQT239eiQ5BVWgR+BbKRLIRtLMs3YCFCirABehqL GMcEJdBDbG/cjVmsX+j5+NYckJQWyX8pIr1SM8yXxaq4N+8Q+obzcL3rj0vCZR64Rhde/x f0ZDqFZ9cha6+TtcZeKNwz7QTBayu9eCTGNCmiVpbYbXAd7NdCkyRyXkFbtNwgWeho26FA 0qaGVepZS/Mh98E4zLx6+GG2jdNpy0Zh8H6YxQuM6c5tIee3IKFzK6iG3nShqQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XG2by3cSXzKbb for ; Sat, 28 Sep 2024 09:49:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 48S9nIU2020523 for ; Sat, 28 Sep 2024 09:49:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48S9nIVG020522 for ports-bugs@FreeBSD.org; Sat, 28 Sep 2024 09:49:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 281496] devel/olm: fix build with clang 19 Date: Sat, 28 Sep 2024 09:49:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281496 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch 2024Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3Dca0626f2f34caa27f3457418b1a694f= c684705f5 commit ca0626f2f34caa27f3457418b1a694fc684705f5 Author: Dimitry Andric AuthorDate: 2024-09-14 11:33:09 +0000 Commit: Dimitry Andric CommitDate: 2024-09-28 09:48:24 +0000 security/olm: fix build with clang 19 Clang 19 has become more strict about assigning to const variables, resulting in an error similar to: =20=20=20=20=20 /wrkdirs/usr/ports/security/olm/work/olm-6d767aaf29bdf15571c2ef4d3f8f9e953d= e03733/include/olm/list.hh:106:13: error: cannot assign to variable 'other_pos' with const-qualified type 'T *const' 106 | ++other_pos; | ^ ~~~~~~~~~ =20=20=20=20=20 /wrkdirs/usr/ports/security/olm/work/olm-6d767aaf29bdf15571c2ef4d3f8f9e953d= e03733/include/olm/list.hh:102:19: note: variable 'other_pos' declared const here 102 | T * const other_pos =3D 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 (cherry picked from commit c42de78032ea24d6431412e2aec35383c3c66a34) security/olm/files/patch-include_olm_list.hh (new) | 11 +++++++++++ 1 file changed, 11 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=