1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

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)
This commit is contained in:
Alexey Dokuchaev 2023-02-14 04:58:06 +00:00
parent 2e959b2f9b
commit 802bc74a37

View File

@ -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;