From nobody Sat Feb 11 12:09:48 2023 X-Original-To: dev-commits-ports-all@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 4PDTtj1k4jz3q3RV; Sat, 11 Feb 2023 12:09:49 +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 4PDTtj0kGjz3Jqk; Sat, 11 Feb 2023 12:09:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676117389; 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=ecNCRrt3bYPpC3cEiJnbPwpj7Fry2a2ipq3/IBRYRzo=; b=S4Ra1GrMzLSq3OlOvwKBuuQur/d2KDxOqAZRPQYn91j+cECfBGpE/NQGah58QH274EGzkY DTgpLbZkqwgjaGmAMQ0dcftmz+mawXcsHPxClCPeuiJw0hF8Y+rQxgoOKEEIbEp8yP67bJ eYky0XiUxhL3a9AzNPWYnClJ501YJewRTGZXO6PH7HkGdsK7EIuhK7SmbNMmubRgBIKW7a XORLwFW1yUWbgMVOrHuANx29BlybiTwca0L8/Uqtdh2QFuHkfCzt7RCyc9qEFICRp4vAaV FnlnpTCmKPeT2gSLVGZCmHkz3Sk16h6exGVN8ZwzE9gPFyPU0DGsK5797Bgg0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676117389; 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=ecNCRrt3bYPpC3cEiJnbPwpj7Fry2a2ipq3/IBRYRzo=; b=xNQXE9K3rH7DXlDzpboE5ZM4cMljNZFL8cjfecFjZhBjknFJBW8kJIuUbJw+FYldXet42i A5Y5DPI82rO596U0Oqief6G6/atufnLf9v4yuDFjs1J/EZ3VSwUy5WKgPpAGJa4gJXNB4E EbUpkpoNlP3Md+c/AqlvvxIVxIsKP8cymTTdtSCzWdHH+VKW/2mKlUQCz1AnxMIotj7N8D 2WpM2dUFf/4qZpVzZ2UPfj/bye7yieu6I0SGNrU1fo7Bc5IhHEo7nNsjM+3VJ0pKeyuxbL xyuWS9TaIv2y7ByivnUI3c+9XZ5GL+HADXm/gXqM0nuBGeaLPLNcDYt1bqXnvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676117389; a=rsa-sha256; cv=none; b=j40yMO+3mZfjHbhHSnJ49iyN7tqf9d0/C9s6dJllyTtOlzlSO+nQYZOA0MbS5FSbFASoV4 WVzRL9LdzXwOrBRPnCn1yde0wZij1YOp590tNxCrP1p9syB2CiScuTodj9ua/bmPnnXLZ0 2DEk1LtWwN9eLxEQ8ryR0UaK5zvJIts65bM2bdwWYrNG/K1atQUr2IGKYdb2yB3i2lFKte A0TKXUrP9nhrNWvLaMmgtwfrdTfw4sXUKsKXsSyP+t1iO1SVvHYo2Hr9ZNocec9PzhyOgl bahyVHTTbR07HXGECEzZH5zSQqoBMZu2ZsYep+fQTKjpIh1DYXGlmMuVyXM6HA== 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 4PDTth6ffqzxc0; Sat, 11 Feb 2023 12:09:48 +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 31BC9mwT075097; Sat, 11 Feb 2023 12:09:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31BC9mOq075096; Sat, 11 Feb 2023 12:09:48 GMT (envelope-from git) Date: Sat, 11 Feb 2023 12:09:48 GMT Message-Id: <202302111209.31BC9mOq075096@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 3968779d8b3b - main - emulators/xsystem35: unbreak build with clang 15 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3968779d8b3bc78928f508f2d90a9f30eb633f32 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=3968779d8b3bc78928f508f2d90a9f30eb633f32 commit 3968779d8b3bc78928f508f2d90a9f30eb633f32 Author: Jan Beich AuthorDate: 2023-02-11 11:57:32 +0000 Commit: Jan Beich CommitDate: 2023-02-11 12:09:33 +0000 emulators/xsystem35: unbreak build with clang 15 nDEMO.c:22:6: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'int *'; dereference with * [-Wint-conversion] int p1 = getCaliVariable(); ^ ~~~~~~~~~~~~~~~~~ * nDEMO.c:28:6: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'int *'; dereference with * [-Wint-conversion] int p1 = getCaliVariable(); ^ ~~~~~~~~~~~~~~~~~ * nt_msg.c:189:9: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] char *b = sjis2euc(msg); ^ ~~~~~~~~~~~~~ nt_msg.c:261:10: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] char *b = sjis2euc(mbuf); ^ ~~~~~~~~~~~~~~ sactcg.c:211:9: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] char *b = sjis2euc(cText); ^ ~~~~~~~~~~~~~~~ Reported by: pkg-fallout --- emulators/xsystem35/Makefile | 2 +- emulators/xsystem35/files/patch-clang15 | 61 +++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/emulators/xsystem35/Makefile b/emulators/xsystem35/Makefile index a4c83ce19edf..45cf6222a739 100644 --- a/emulators/xsystem35/Makefile +++ b/emulators/xsystem35/Makefile @@ -1,6 +1,6 @@ PORTNAME= xsystem35 DISTVERSION= 1.7.3-pre5 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= emulators games MASTER_SITES= DEBIAN DISTFILES= ${DISTNAME:S/-/_/}.orig${EXTRACT_SUFX} diff --git a/emulators/xsystem35/files/patch-clang15 b/emulators/xsystem35/files/patch-clang15 new file mode 100644 index 000000000000..6e167ce3e9ac --- /dev/null +++ b/emulators/xsystem35/files/patch-clang15 @@ -0,0 +1,61 @@ +Get value instead of pointer in Set*Flag() like other modules + +nDEMO.c:22:6: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'int *'; dereference with * [-Wint-conversion] + int p1 = getCaliVariable(); + ^ ~~~~~~~~~~~~~~~~~ + * +nDEMO.c:28:6: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'int *'; dereference with * [-Wint-conversion] + int p1 = getCaliVariable(); + ^ ~~~~~~~~~~~~~~~~~ + * + +Avoid implicit function declaration for sjis2euc() + +nt_msg.c:189:9: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] + char *b = sjis2euc(msg); + ^ ~~~~~~~~~~~~~ +nt_msg.c:261:10: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] + char *b = sjis2euc(mbuf); + ^ ~~~~~~~~~~~~~~ +sactcg.c:211:9: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] + char *b = sjis2euc(cText); + ^ ~~~~~~~~~~~~~~~ + +--- modules/NIGHTDLL/nt_msg.c.orig 2003-11-09 15:06:12 UTC ++++ modules/NIGHTDLL/nt_msg.c +@@ -18,6 +18,7 @@ + #include "sactcg.h" + #include "sjisname.h" + #include "sactstring.h" ++#include "eucsjis.h" + + + extern int ntsel_dosel(void); +--- modules/NIGHTDLL/sactcg.c.orig 2003-11-16 15:29:52 UTC ++++ modules/NIGHTDLL/sactcg.c +@@ -34,6 +34,7 @@ + #include "ags.h" + #include "surface.h" + #include "ngraph.h" ++#include "eucsjis.h" + #include "sactcg.h" + + #define CGMAX 65536 +--- modules/nDEMO/nDEMO.c.orig 2001-07-30 22:58:40 UTC ++++ modules/nDEMO/nDEMO.c +@@ -19,13 +19,13 @@ void SetKeyCancelFlag() { + } + + void SetKeyCancelFlag() { +- int p1 = getCaliVariable(); ++ int p1 = getCaliValue(); + + DEBUG_COMMAND_YET("nDEMO.SetKeyCancelFlag %d:\n", p1); + } + + void SetLoopFlag() { +- int p1 = getCaliVariable(); ++ int p1 = getCaliValue(); + + DEBUG_COMMAND_YET("nDEMO.SetLoopFlag %d:\n", p1); + }