From 356739cd8e8878e6e0ec488d473389aa1ffc92b4 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 22 Mar 2012 00:44:28 +0000 Subject: [PATCH] mark some functions as static to hush warnings changed a VM_Warning to fix a format warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11771 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=093cad2cdacdc0faaa0803ab2829919fc8e2e48b --- cl_particles.c | 2 +- prvm_cmds.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cl_particles.c b/cl_particles.c index 331310b7..5faa737d 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -555,7 +555,7 @@ static void CL_Particles_LoadEffectInfo(const char *customfile) } } -void CL_Particles_LoadEffectInfo_f(void) +static void CL_Particles_LoadEffectInfo_f(void) { CL_Particles_LoadEffectInfo(Cmd_Argc() > 1 ? Cmd_Argv(1) : NULL); } diff --git a/prvm_cmds.c b/prvm_cmds.c index e45c4097..8fe611d7 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -5020,7 +5020,7 @@ void VM_buf_loadfile(prvm_prog_t *prog) if (prog->openfiles[filenum] == NULL) { if (developer_extra.integer) - VM_Warning(prog, "VM_buf_loadfile: failed to open file %s in %s\n", filename, prog->name, filename); + VM_Warning(prog, "VM_buf_loadfile: failed to open file %s in %s\n", filename, prog->name); PRVM_G_FLOAT(OFS_RETURN) = 0; return; } @@ -5167,7 +5167,7 @@ void VM_buf_writefile(prvm_prog_t *prog) #define MATCH_MIDDLE 4 #define MATCH_PATTERN 5 -const char *detect_match_rule(char *pattern, int *matchrule) +static const char *detect_match_rule(char *pattern, int *matchrule) { char *ppos, *qpos; int patternlength; @@ -5222,7 +5222,7 @@ const char *detect_match_rule(char *pattern, int *matchrule) } // todo: support UTF8 -qboolean match_rule(const char *string, int max_string, const char *pattern, int patternlength, int rule) +static qboolean match_rule(const char *string, int max_string, const char *pattern, int patternlength, int rule) { const char *mid; -- 2.39.2