From e4cec230f2edea3363d142f96a392bb835874145 Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Wed, 26 Aug 2020 09:46:29 -0400 Subject: [PATCH] Fix compile warnings --- fs.h | 1 + gl_draw.c | 2 +- prvm_cmds.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs.h b/fs.h index e466d990..8ddaa76f 100644 --- a/fs.h +++ b/fs.h @@ -80,6 +80,7 @@ void FS_Purge (qfile_t* file); const char *FS_FileWithoutPath (const char *in); const char *FS_FileExtension (const char *in); int FS_CheckNastyPath (const char *path, qboolean isgamedir); +int FS_rmtree(const char *dir); extern const char *const fs_checkgamedir_missing; // "(missing)" const char *FS_CheckGameDir(const char *gamedir); // returns NULL if nasty, fs_checkgamedir_missing (exact pointer) if missing diff --git a/gl_draw.c b/gl_draw.c index a4052700..3a100885 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -326,7 +326,7 @@ void Draw_FreePic(const char *picname) qboolean Draw_PicExists(const char *name) { char vabuf[1024] = { 0 }; const char *checkfmt[] = { "%s.tga", "%s.png", "%s.jpg", "%s.pcx" }; - int i; + long unsigned int i; // TODO: actually use the gfx format list for this for (i = 0; i < sizeof(checkfmt) / sizeof(checkfmt[0]); ++i) if (FS_FileExists(va(vabuf, sizeof(vabuf), checkfmt[i], name))) diff --git a/prvm_cmds.c b/prvm_cmds.c index 0a273c2f..8655a1c3 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -2040,7 +2040,7 @@ void VM_fcopy(prvm_prog_t *prog) FS_Close(f1); FS_Close(f2); PRVM_G_FLOAT(OFS_RETURN) = -3; - VM_Warning(prog, "VM_fcopy: %s read %I64d from %s but wrote %I64d to %s\n", prog->name, rx, fname1, wx, fname2); + VM_Warning(prog, "VM_fcopy: %s read %lli from %s but wrote %lli to %s\n", prog->name, rx, fname1, wx, fname2); return; } } -- 2.39.2