From nobody Sat Sep 14 11:36:40 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 4X5TfJ5Pfdz5W2cZ for ; Sat, 14 Sep 2024 11:36:40 +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 4X5TfJ4JF9z4HSl for ; Sat, 14 Sep 2024 11:36:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726313800; a=rsa-sha256; cv=none; b=r58ZdZTIjMkWY13yH7rhHt/5nmK5+WiVkPL4Nl39Ol6OWyRKjxatlUN7j1n2R9kP+Zn+Lr Uxj4b6iCAaSkrh+69A0v6ZDjdJZ6BQdO5Z81gY/Dy3NQVmxfF2XsQarM+XJjRiGwSCqfkT azSFN6YYeSgkuV0yOq93SZib4aRabdI5ZpAMqPHTn4d55gYX4cZUqW7AxJ570uV77Txdgt zhLfWH8UPNxetE4en8XY3k7pFRGuyOMHMsFWQOWQeR5T4Gndd51SukdSdGaPqoeFnOs7az D4LsDmT9GL1p7WzrTxIld/E+HtcZGhWRq6RAs0a7nNNATF1c9s9pz0EOYZoNSA== 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=1726313800; 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=yKsrMph24rfDg4MahAcW6ZB3UDhs/OYdDJqILxjlM0E=; b=Ek/qDB8oeac6c+4KNK+9HDj9CJqAd44Y6u8zMTKuM36hU118YDcvlxRxdq9Ntz8p8gUMLf xHrt8m61YN5hWIzVfVNVFZDwSeNwrVd8PuSswKuBjVgdn9nuXXx5Gcd0IefesgrR+Wi0V4 g5wfGqU7plAIyQm/iW9ah371DfYGvNaSP6T+RhT2BO06Vn4Fs8oJIeyLRd3NDHImoCWI2O HkyIaKFIMnaGQatuhUzbFKDgWzNTjtIlypfQw9/q+/C5/WiZ7qEzQ09CTH2NTEw/84Av9Z o92LQqiQ3kyaKQsoqidkoVGLQRg8s+HFv7ij/6nujkKLvJ4FJvuzv70MXTN3EA== 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 4X5TfJ3V2SzPvN for ; Sat, 14 Sep 2024 11:36:40 +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 48EBae5q007149 for ; Sat, 14 Sep 2024 11:36:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48EBaecv007147 for ports-bugs@FreeBSD.org; Sat, 14 Sep 2024 11:36:40 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 281497] security/olm: fix build with clang 19 Date: Sat, 14 Sep 2024 11:36:40 +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: adridg@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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=3D281497 Bug ID: 281497 Summary: security/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: adridg@freebsd.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(adridg@freebsd.org) Assignee: adridg@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.=