From nobody Sat Sep 14 11:32:39 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 4X5TYg4CJHz5W1tb for ; Sat, 14 Sep 2024 11:32:39 +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 4X5TYg2YfMz4GlG for ; Sat, 14 Sep 2024 11:32:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726313559; a=rsa-sha256; cv=none; b=fid6cFsXZ9z0QulyL08v8kOLZdHhhj4HrS2m8uFkpb/gcajmO6NGmnnFpVQq0I/wzNU47f c8+qFKf4wMaGJhh8nd/1CzRJs5mt/0buf0X4WdfaBQVYB+I++FYgR/Z0Udb7JnzQGuMTWr vKii2LTYEBPFBXBZjaixHH3epweW+c4frCADviuNYgDmCze2rAcOvMeaGsz0J+0auwWAic jBFifxTp8l0XIolSTgtjDEcQPkVcPQ+mhjnPAv/gJAEYwwKM13HylmKgOJmsVaSTxQJBxP 3IqqtKrBrfFNcPolhY+3fjQc1AlHE/2THLUk+VbHN576+mMjPkJzJKSp0oEw4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726313559; 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; bh=Z17iCLKoj9rakbF06ngQcNNSixU6i+YE3NKZFv7sWZs=; b=wiEwMnKh3BYCHQqh6GhAaJkyBDnsVva0qBv6fzehiLIr5GBjw8Ntravp2KkQ0biQaVzze4 OSEm10QOcVpVJFZ5VwLtT3f7JKsDQsiA+oX6EUCNE5IAJR1jn/A6XV3KRENFrKMptnhznp yKPwpT7X6HMkWTRfxrEO2Dw8sC1YevtZBbE5vg/YXrgF9ssMcGs4UyFmWcLVZMQ6gTJlZj 9IbJmiHzIM/xM5fU340D3TEWNaGrIc2oj8+ojqzjc1Beg8PoUxEXxkwf6HheIMc/w5diyc RUxUrk8UC2ELPm2dX9L69gyvUOgCWqB8OadrvSwKwLcZuTZhEjJJPreC3LEkPA== 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 4X5TYg29ZDzQKy for ; Sat, 14 Sep 2024 11:32:39 +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 48EBWdD1001411 for ; Sat, 14 Sep 2024 11:32:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48EBWdot001410 for ports-bugs@FreeBSD.org; Sat, 14 Sep 2024 11:32:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www 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, 14 Sep 2024 11:32:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 Bug ID: 281496 Summary: devel/olm: fix build with clang 19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org Clang 19 has become more strict about assigning to const variables, resulting in an error similar to: =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 /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. --=20 You are receiving this mail because: You are the assignee for the bug.=