From nobody Fri Sep 13 09:11:22 2024 X-Original-To: gnome@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 4X4pT71Zz7z5WTHy for ; Fri, 13 Sep 2024 09:11:23 +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 4X4pT6571dz4mq5 for ; Fri, 13 Sep 2024 09:11:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726218682; a=rsa-sha256; cv=none; b=rmFFmj2KkpgIVozqy5UWp2DrN7gTTJsL3ekORrTT4W1/wHERdlSZyjFzIrOHkPioL58LsM Qi+j7Nlzh6Ecc9JWngDVWPnKjMo6li/ri/em1SPZuR3eeURJj+B8ONjQXQXiqWvgnDs7hi mVSo5qqxGUR3IeJ52KQXrFbqRLZcDShYQe2+Q3U65obPCnTztDbD+U3xF4Sjxx5/Ea9luZ ST4LPDyPclf/LKGYfLXlgODsoxZZlODxH8+mrQIqFjClL98dZqfAbdgrdcrFGMPFdI75b4 FC1ZU1c+WdebNwoF4tjgCJjBeofaepRN000LF2mi3BzOLoSYCbEwz7dSHqUEwQ== 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=1726218682; 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=F8gKUoveIMlJevc3d04Fp4w3wx0jYs2IePUbjl/y67Y=; b=tkrKS9S9JZftMdoZStS4HFqFwCF49xR/G3KOgnziN2eY8/8eHvKKFrMczWikS961ZnWGpo ONphCR9YSrmQqfYHphh/cwFQuM1KFkUfBXJJAF07Ovz86v7fj+xwRjC4Q/RB1tEGWY9L0C 3XHsN8G7aitjL6hQVc1IWsOdcKcQdMOFqbwFPufasycRIYN1Ig6ravD57VgRSgWlqI/9y9 s6skYu4CLBg5SLH9xMefGQLHH5Cm8mFUx4kPFYZvcW5wvhRpHw62K3XKpZj9rrikuhihdc ZSnmtiORhmLiNlm5sjK4o6YpId7ZeLP5TqCLI8JC2sXxyj9wRUOiI+PkFN9LEg== 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 4X4pT64lWjzcf6 for ; Fri, 13 Sep 2024 09:11:22 +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 48D9BMG1037701 for ; Fri, 13 Sep 2024 09:11:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48D9BMXk037700 for gnome@FreeBSD.org; Fri, 13 Sep 2024 09:11:22 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: gnome@FreeBSD.org Subject: [Bug 281477] audio/libaudiofile: fix build with clang 19, enable tests Date: Fri, 13 Sep 2024 09:11:22 +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: gnome@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: GNOME for FreeBSD -- porting and maintaining List-Archive: https://lists.freebsd.org/archives/freebsd-gnome List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gnome@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281477 Bug ID: 281477 Summary: audio/libaudiofile: fix build with clang 19, enable tests Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: gnome@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: gnome@FreeBSD.org Flags: maintainer-feedback?(gnome@FreeBSD.org) Clang 19 has become more strict about initialization with undefined behavior, resulting in errors similar to: ./SimpleModule.h:126:40: error: in-class initializer for static data memb= er is not a constant expression 126 | static const int kMinSignedValue =3D -1 << kScaleBits; | ~~~^~~~~~~~~~~~~ ./SimpleModule.h:176:22: note: in instantiation of template class 'signConverter' requested here 176 | transform::signedToUnsigned>(src, dst, count); | ^ ./SimpleModule.h:183:5: note: in instantiation of function template specialization 'ConvertSign::convertSignedToUnsigned' requested here 183 | convertSignedToUnsigned(sr= c, dst, count); | ^ This is because left-shifting negative values is undefined. Replace -1 with ~0u which results in the expected value. While here, add a few other patches to remove warnings about undefined left-shifts, and add support for the "make test" target. --=20 You are receiving this mail because: You are the assignee for the bug.=