From fa99d2b5639498039df5501ba1c3f75ac5180ab9 Mon Sep 17 00:00:00 2001 From: Peter0x44 Date: Mon, 17 Jun 2024 16:26:53 +0100 Subject: [PATCH] VITA/NX: Fix -Wincompatible-pointer-types warning COM_LoadStackFile already returns a "byte*" so this cast is totally unneeded. I'm not sure why it was there to begin with source/gl_model.c: In function 'Mod_LoadModel': source/gl_model.c:337:7: warning: assignment to 'byte *' {aka 'unsigned char *'} from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types] 337 | buf = (unsigned*)COM_LoadStackFile ("models/missing_model.mdl", stackbuf, sizeof(stackbuf), NULL); | ^ --- source/gl_model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gl_model.c b/source/gl_model.c index 70125de..dc26dc4 100644 --- a/source/gl_model.c +++ b/source/gl_model.c @@ -334,7 +334,7 @@ qmodel_t *Mod_LoadModel (qmodel_t *mod, qboolean crash) buf = COM_LoadStackFile (mod->name, stackbuf, sizeof(stackbuf), & mod->path_id); if (!buf) { - buf = (unsigned*)COM_LoadStackFile ("models/missing_model.mdl", stackbuf, sizeof(stackbuf), NULL); + buf = COM_LoadStackFile ("models/missing_model.mdl", stackbuf, sizeof(stackbuf), NULL); if (buf){ Con_Printf ("Missing model %s substituted\n", mod->name); }else if(!buf){