]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 1 Apr 2012 09:40:53 +0000 (11:40 +0200)
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
prvm_cmds.c

index 331310b7ef01b10baac26dedcc2d0a5ef0ff4891..5faa737d2fc5c0adafbb9366f6cd15a926ddf29b 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 e45c4097fa290a71ac4e029bda2931605636a560..8fe611d7e5d923a02df84dd4d792ac0ca320515a 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;