mark some functions as static to hush warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Mar 2012 00:44:28 +0000 (00:44 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Mar 2012 00:44:28 +0000 (00:44 +0000)
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

cl_particles.c
prvm_cmds.c

index 331310b..5faa737 100644 (file)
@@ -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);
 }
index e45c409..8fe611d 100644 (file)
@@ -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;