From nobody Sat Mar 16 01:50:46 2024 X-Original-To: dev-commits-src-main@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 4TxPGG4Zlzz5DRWm; Sat, 16 Mar 2024 01:50:46 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TxPGG3mWcz4mP2; Sat, 16 Mar 2024 01:50:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710553846; 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=SFmZjt4X133B2nBpz3IrS6jVxJu8Sg1LqITyx6efHO0=; b=V+p+6R0KPAiP9UwtrGYKDFAf5CRoEXMlcLUS2iVPQXsyTGMDUNtgI46wBs50H2U8afDjrC LsJLzBfSeB+a9XObjRDl/Dvqf2bm08vwN7kkD6f+DVn4OmhJKg+JJFtl8tbaYMKSK5fUKK 4siP9mnpfPFFC9RXWzXp999AgSzwXMSjq0eo57MRZXUiYg/RnLloGSNlfz/FG34ldW9Sa/ Kp4N5+OI2e0wA7tQPqmLvru0Gf3VfxaTDTsuAqGDLyi6fEurG/PCsxbSA1JhfusvYYEnlt TtLiYawhRJ3K8I9ufqRTgztZe6fQv+4GoXvL4PvAn9bZletTinzUZSUbqvCE0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710553846; a=rsa-sha256; cv=none; b=qruSJ9GAjRzPfKEwaP3/2+BkCMF0I3q0xLwZYbrvCfNhwW2bE+ZLmw5/yY84HWEtkRItSk p+plT6jhfELh8mwA2lbOeA7I1tmc+sTC984/jDA0nn9YX+Si/EyOAo/QHnX84ul7WYg4sk TfXJg8YPRHqxOqxvonwiPGX37un6GnKoM7v8y8chXanYLcAHXJzL4S2jx/gQUhHKtaJDCi rNbkhQINTHyX8iv5nT0BPYK9i64aU0kP4vcOYGEMhD0Zg2NQ0soix9DkhhsVNNGQMcXXjG 9PqZJ7z3DTirXWtIRy4GrB7oJhEN1kTmrvREDqkJA7g2ALfJJ7OdlTCX+L1l1Q== 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=1710553846; 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=SFmZjt4X133B2nBpz3IrS6jVxJu8Sg1LqITyx6efHO0=; b=NMatIQARkK+B/1iGNEUFfQx9UDqeDIcDnyl/NviX/PBtvtdY/8BfP0gwRRAllULJ2/z4DR co7x3CibV4hgbrrl16lP6WGTVYpiBWjgw6HlHxFJEgdeXyYEJfSRRMUASMNmXQi0+1C/4t IR4EOxT7PkKOi15MDJXkp2V3/zmNGQ/QRv+GmHhaWzsqUfN7w/3hsqAZJschqAEOQWD/3S pgbkkhv7YcsjOz32UTOQstRI86MTS9auyJpnd1C4hoYQys8qBDJGNEDLEtWBJtDU71waaT ufgzExp9dnWpErhlPLUSzLTLeCZ0w8fLca4JtOUZ6lSLMI1KUj2uH1to9IMbqw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4TxPGG3Mmdzbdx; Sat, 16 Mar 2024 01:50:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42G1ok50003547; Sat, 16 Mar 2024 01:50:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42G1okmT003544; Sat, 16 Mar 2024 01:50:46 GMT (envelope-from git) Date: Sat, 16 Mar 2024 01:50:46 GMT Message-Id: <202403160150.42G1okmT003544@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: d8c84215d767 - main - jevents: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d8c84215d7675b7940412122b6d7026bd193c9b5 Auto-Submitted: auto-generated The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=d8c84215d7675b7940412122b6d7026bd193c9b5 commit d8c84215d7675b7940412122b6d7026bd193c9b5 Author: Jessica Clarke AuthorDate: 2024-03-16 01:50:20 +0000 Commit: Jessica Clarke CommitDate: 2024-03-16 01:50:20 +0000 jevents: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15 macOS, like Linux, does not include an outer const qualifier for its fts_open callback arguments, so -Wincompatible-function-pointer-types also picks this up and breaks the build now Clang 16 makes it an error by default. Extend the existing Linux support to fix this. MFC after: 1 week --- lib/libpmc/pmu-events/jevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libpmc/pmu-events/jevents.c b/lib/libpmc/pmu-events/jevents.c index 590b465af400..7059b31da2ba 100644 --- a/lib/libpmc/pmu-events/jevents.c +++ b/lib/libpmc/pmu-events/jevents.c @@ -1355,7 +1355,7 @@ err_out: #include static int -#ifdef __GLIBC__ +#if defined(__GLIBC__) || defined(__APPLE__) fts_compare(const FTSENT **a, const FTSENT **b) #else fts_compare(const FTSENT * const *a, const FTSENT * const *b)