ref: 187cabf909505fac7434b7b5ee7308cc8aa38c74
parent: 6c484cc08d3b071c6441adc61c87db32c2d471b1
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Oct 11 21:24:24 EDT 2023
declare more stuff as static
--- a/d_sprite.c
+++ b/d_sprite.c
@@ -368,7 +368,7 @@
int i, nump;
float ymin, ymax;
emitpoint_t *pverts;
- sspan_t spans[MAXHEIGHT+1];
+ static sspan_t spans[MAXHEIGHT+1];
sprite_spans = spans;
--- a/model.c
+++ b/model.c
@@ -48,7 +48,6 @@
Mod_LoadModel (mod, true);
if (!mod->cache.data){
- assert(0);
fatal ("Mod_Extradata: caching failed: %s", mod->name);
}
return mod->cache.data;
--- a/pr_exec.c
+++ b/pr_exec.c
@@ -11,12 +11,12 @@
} prstack_t;
#define MAX_STACK_DEPTH 2048
-prstack_t pr_stack[MAX_STACK_DEPTH];
-int pr_depth;
+static prstack_t pr_stack[MAX_STACK_DEPTH];
+static int pr_depth;
#define LOCALSTACK_SIZE 32768
-int localstack[LOCALSTACK_SIZE];
-int localstack_used;
+static int localstack[LOCALSTACK_SIZE];
+static int localstack_used;
qboolean pr_trace;
--- a/sv_main.c
+++ b/sv_main.c
@@ -7,7 +7,7 @@
server_t sv;
server_static_t svs;
-char localmodels[MAX_MODELS][8]; // inline model names for precache
+static char localmodels[MAX_MODELS][8]; // inline model names for precache
//============================================================================
@@ -694,7 +694,7 @@
*/
qboolean SV_SendClientDatagram (client_t *client)
{
- byte buf[MAX_DATAGRAM_LOCAL];
+ static byte buf[MAX_DATAGRAM_LOCAL];
sizebuf_t msg;
msg.data = buf;
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -412,8 +412,8 @@
vec3_t mins, maxs, move;
vec3_t entorig, pushorig;
int num_moved;
- edict_t *moved_edict[MAX_EDICTS];
- vec3_t moved_from[MAX_EDICTS];
+ static edict_t *moved_edict[MAX_EDICTS];
+ static vec3_t moved_from[MAX_EDICTS];
if (!pusher->v.velocity[0] && !pusher->v.velocity[1] && !pusher->v.velocity[2])
{