From nobody Tue Feb 14 05:03:18 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 4PG8HC1wS3z3qYlW; Tue, 14 Feb 2023 05:03:19 +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 4PG8HC1Jn2z4DC4; Tue, 14 Feb 2023 05:03:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676350999; 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=qRJ2Vxb2cfitmqM9aWBk7Mga3vzv1/6v6tXKnc4xPWo=; b=AffWxoHsgBzLhuX+uw+/3p5Ax7k5XUL/YUQA2ImbeSGxacaNVlWFWY/HzVodPjn0r2mPfL YpN4Z8kzmIzGr9jMLf/H3+GnzWiTm8MYhGd0Ksiuz1apkNpSn9A3BpOIMXeGlR6GbgWHB5 F40kCuYax5HMvb3P5TbSKqLhMxmHwjUuaFBSNTP6VONtCPaxAcKR+8UlmNs6Y5bbR5cPOw GAUT//mh57BYabgNCl3eIJRAMct0hZ5mXQgpyRLa57vYTGwbE3V/dix3FM8edV4uGWZkp9 IR3+qFy48UHGVjZOQe8rt9WQsh2INR+0o6o9YNYdtj6Atip6lgVFiVD+16LxIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676350999; 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=qRJ2Vxb2cfitmqM9aWBk7Mga3vzv1/6v6tXKnc4xPWo=; b=Yr6j/Rq4nRmWveCmMBK61Q1x/sTIcnLruvmJXDU2AxMpkS5/hqc4AJzKBGLeRDVfEKlzOW zcT4MODv/g82+12+Qz06AvnjaQR8SowOHptG9zXkREmWph7X2zgB0MlaPMTahdUSY9dwx7 Z4S+4Bh8Bc7bZYn3UDiFgKXSxCwZ6IiRWutuFn2PJ6x/9WUufWwXopm6ZYGxbTOz3ztHR5 cJffyVjpF53xBmCBG+Meyjk+OFWDUlPaPocqCzeUoo1TwwrOqX4pAcqef8b2x1jb6GZSnv tjXFqlCfnj2zQ+mCx29juC+5JNO96dnqkS19Vln9QW8xkDw1Ad8DQGjf0JYxYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676350999; a=rsa-sha256; cv=none; b=Dd/ilLhn0UZDXxSIbFK20ur5q3tbIKat0JXym2k30h4LOXziApGRDa/TYsc4p1tgLE8Jng 1sWo264Yap6GfwXcBJzDiiCryErl2pKaUkJVXsjF88Xb8QM4wlARHKOei1iE1sDuFlqi0g fPsRe1Lo8WWwFNzWJdGmO6kNDgCb7nTP0QonKtZx0GHGe2x4LIihMRqAv9g3WRJ8/l9LHd Uo0FLmiMSrSbAn9plDNNZYsricbn31tG9211XAESNzwnSEatLvdEkfQ1YpQUSCQV8ylDTP gBVuYJXIGpLHgsF3laLNB1a8dGkrJ2Bo0gdl5cRa5ndoap9opWCE8lW0Opg5nA== 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 4PG8HC0Ff9zmDr; Tue, 14 Feb 2023 05:03:19 +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 31E53IBb043861; Tue, 14 Feb 2023 05:03:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31E53IoO043860; Tue, 14 Feb 2023 05:03:18 GMT (envelope-from git) Date: Tue, 14 Feb 2023 05:03:18 GMT Message-Id: <202302140503.31E53IoO043860@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 802bc74a375f - main - games/quake2max: specify return type of Mod_GetTris() function correctly 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: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 802bc74a375fa5ce814626d572af7467fc914bc8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=802bc74a375fa5ce814626d572af7467fc914bc8 commit 802bc74a375fa5ce814626d572af7467fc914bc8 Author: Alexey Dokuchaev AuthorDate: 2023-02-14 04:58:06 +0000 Commit: Alexey Dokuchaev CommitDate: 2023-02-14 04:58:06 +0000 games/quake2max: specify return type of Mod_GetTris() function correctly It iterates over a counter (local variable) and returns its value, not the address. While here, staticize it as it is not called elsewhere. Reported by: pkg-fallout (clang 15) --- games/quake2max/files/patch-ref_gl__gl_model.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/games/quake2max/files/patch-ref_gl__gl_model.c b/games/quake2max/files/patch-ref_gl__gl_model.c index e5c270853f20..9d2fd4530009 100644 --- a/games/quake2max/files/patch-ref_gl__gl_model.c +++ b/games/quake2max/files/patch-ref_gl__gl_model.c @@ -27,3 +27,12 @@ if (mod->script[i]) RS_ReadyScript((rscript_t *)mod->script[i]); } +@@ -1465,7 +1465,7 @@ + } + + +-signed int *Mod_GetTris(short p1, short p2, dtriangle_t *side1, dmdl_t *hdr) ++static signed int Mod_GetTris(short p1, short p2, dtriangle_t *side1, dmdl_t *hdr) + { + dtriangle_t *tris = (dtriangle_t *)((unsigned char*)hdr + hdr->ofs_tris); + int i;