From nobody Sat Sep 28 09:48:16 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 4XG2Zm6YZlz5X54P for ; Sat, 28 Sep 2024 09:48:16 +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 4XG2Zm34WMz40w9 for ; Sat, 28 Sep 2024 09:48:16 +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=1727516896; 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=o8yenet+bYp/+XJHXAh6/70DNhaQoP7BwFu5hx8s2bs=; b=SLgpm9l4jjMSFh55T3pZY9wdIHS82OZbsWQ4tlnH7gIXXm19RZ8yNeUKLnAlahQ4YjCtbH sj8cReUwXI1seBZ6GcEeY+j1ygpcxNPpunIk5PiYCydlEe6BRtRuQywAtlbRT/rmgYgZqd 1BXZbKACiB0LOk8WYT+/wCGGFqS8zum24vzJqD5f+TY0yf6TViMHAiz/IxqQViYkSZI91l MIfvdQc5HouoWZTKTesQPOllCw7YeFPW7JxosHbyk1trD6XX1n7pBWQ+9m0ZUAxsgPUDcc 9+qDrMUOy6DGAREcB8Cqk3sJ8uHSL+jgAsyDAqxWvm7P9s6GABHSe/k9KGhDRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727516896; a=rsa-sha256; cv=none; b=ya++aeU4j8LNuTSSe0jRdq0YSBnk+R+KdQqnAjkbvrmj/vhI9xh1d7x5h6v9OZol5uNJSe 7BwAskpUp4wUfSs2JwNaz3rtx9cMsEVHInCUEgSY4VkApueZaaAtm3Bn+aaBbDDplpTVQO lopeLK+OKLwioluNdT1V87AsHnGIhguFZE8lpyYdWZh5E9eVNYvh0en4v4rB9kDtzoEaDv ayaFyLiBZRd1CfdTYSUKKmibY0uUHQozkj5vHVua+7M+5xy+imSc7gh62hMIyoU4DMNA6E W436pVEui+7MgTMx6ryU2TP2XhLmTU+WG6XYw3e61pD1PYRqCGU3XGxxOooJ9Q== 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 4XG2Zm2HdyzKbW for ; Sat, 28 Sep 2024 09:48:16 +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 48S9mG9E019827 for ; Sat, 28 Sep 2024 09:48:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48S9mG53019826 for ports-bugs@FreeBSD.org; Sat, 28 Sep 2024 09:48:16 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:48:16 +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 #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3Dc42de78032ea24d6431412e2aec3538= 3c3c66a34 commit c42de78032ea24d6431412e2aec35383c3c66a34 Author: Dimitry Andric AuthorDate: 2024-09-14 11:33:09 +0000 Commit: Dimitry Andric CommitDate: 2024-09-28 09:46:34 +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 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.=