From nobody Mon Jan 16 19:05:22 2023 X-Original-To: dev-commits-ports-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 4NwhLC1Pf6z2t6Sp; Mon, 16 Jan 2023 19:05:23 +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 4NwhLB6cnwz3nSc; Mon, 16 Jan 2023 19:05:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673895922; 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=KTi6sdi6wzePK0rj7OZMmhOvIwFpBGc/XjlkFaPbcJE=; b=xXhi24ap8saUVmZQZESM0dlnv2AZ1rXwjU9wBYoH9PFNAnCJoAdoQQIKQJXvEAOtwfhUVE nM4yEAXbyhsa4qAhH0nLYXY8V5DcqGxBqtMVfN5Bu5oQoA9yRkWFuCtPv3726bJDyBshVS kMzX2eCuqNSO/aTO+oSj6V9zfq+DVvzBSqlv88uvNcMG8YnXBY5IxpfNauGuMcX5GAETXW zPPdauORex8MhvlJz9nHH8PXD8hnK39LBzkDZERfJuyMuasCpgA/v8qHdcHiZQIDUtAeNS LD1N96zW8RQoQr/E1v7m8b0ZgfBsgZXvjH1KPjO+S7VhAFVGPhP3prpXt58qqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673895922; 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=KTi6sdi6wzePK0rj7OZMmhOvIwFpBGc/XjlkFaPbcJE=; b=hDw/Kj2SQF++NJd0YThzQSANYF82fMrwjaLjYYatFB9Zrfygrniq+U7g6Aw9d7muuvNinH iChgrldlMrtxfp2vHaVnu2SvfC7/cJcD9GkxzE/FWmUDMQ5pB34z/2rbwg2gDhv7ol6y0q UI5Fp9xbaUPD97NLFzwZh9vGbawofwsBadOFBeW8mZOH8igvJPQYtItDV0v3l0/CsPFSdP EadH97jeT/YYbN/loQ1g5wXk4MpCBQA6mXZu4p+O5Y/iSCd5SjOHupx36d265MVscaNswb pQRjREqQoUfb/NVkrRC963VYAcOqfy/PRRHYqLTKg5xEGIYGTXvuBv1ZDfXazQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673895922; a=rsa-sha256; cv=none; b=N+sCF+3PkEUFvIqFcCFAfKveCEjCUHzgHxAUbqTIFz+7UFemnc47saRndV0wjht6fgPWME i9tyacC25Q9QYYN3WpRh0cnUJ4Cdg3SNodT1ulDwxCKYGhhHyeSIwMCr2Ra1KNjRUI4sJp ydEcMNSbk7mVW2xohp7l0SjVueljarwOddkU0+4n6ErekZrtf3Zp67bPnaXlwXO8C+HlPw pev6QBVv/GUQZ/6bVs9N4rwTcVFT279pdzEsL6hOdR4lHJ0u8pDUpEjBmUJZesmQAMUsSL YuWCmOCDahygobN4Y/CCugg4vaYTdQijE6SSnzf1dvoLvZIz2LBS6fyAkJJrdg== 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 4NwhLB5hG2z1Hpw; Mon, 16 Jan 2023 19:05:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30GJ5M7q036214; Mon, 16 Jan 2023 19:05:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30GJ5M5K036213; Mon, 16 Jan 2023 19:05:22 GMT (envelope-from git) Date: Mon, 16 Jan 2023 19:05:22 GMT Message-Id: <202301161905.30GJ5M5K036213@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: a68bb8c9a092 - main - x11-toolkits/gtk-sharp20: fix build with clang 15 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a68bb8c9a0929cbe02e99640479b728b4b916f31 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=a68bb8c9a0929cbe02e99640479b728b4b916f31 commit a68bb8c9a0929cbe02e99640479b728b4b916f31 Author: Dimitry Andric AuthorDate: 2023-01-07 14:55:25 +0000 Commit: Dimitry Andric CommitDate: 2023-01-16 19:04:47 +0000 x11-toolkits/gtk-sharp20: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that x11-toolkits/gtk-sharp20 failed to build with clang 15: windowmanager.c:113:12: error: incompatible integer to pointer conversion assigning to 'gpointer' (aka 'void *') from 'long' [-Wint-conversion] list [i] = data [i]; ^ ~~~~~~~~ This is because gdk_property_get() always returns an array of longs, and these have to be cast to whatever the desired outcome type is. PR: 268812 Approved by: portmgr (tcberner) MFH: 2023Q1 --- x11-toolkits/gtk-sharp20/files/patch-gdk_glue_windowmanager.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/x11-toolkits/gtk-sharp20/files/patch-gdk_glue_windowmanager.c b/x11-toolkits/gtk-sharp20/files/patch-gdk_glue_windowmanager.c new file mode 100644 index 000000000000..2550cba46750 --- /dev/null +++ b/x11-toolkits/gtk-sharp20/files/patch-gdk_glue_windowmanager.c @@ -0,0 +1,11 @@ +--- gdk/glue/windowmanager.c.orig 2016-09-22 10:17:18 UTC ++++ gdk/glue/windowmanager.c +@@ -110,7 +110,7 @@ gtksharp_get_gdk_net_client_list (int *count) + list = g_malloc (*count * sizeof (gpointer)); + /* Put all of the windows into a GList to return */ + for (i = 0; i < *count; i ++) { +- list [i] = data [i]; ++ list [i] = (gpointer) data [i]; + g_message ("WinID: %d", list [i]); + } +