From b6ef825999616f85f824f7adfbbe7abecd2a0df9 Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Wed, 10 Jun 2020 09:44:06 -0400 Subject: [PATCH] Fix compile warnings --- gl_rmain.c | 2 +- snd_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gl_rmain.c b/gl_rmain.c index 0a0ce067..d81512b1 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -2951,6 +2951,7 @@ static int componentorder[4] = {0, 1, 2, 3}; static rtexture_t *R_LoadCubemap(const char *basename) { int i, j, cubemapsize, forcefilter; + char name[256]; unsigned char *cubemappixels, *image_buffer; rtexture_t *cubemaptexture; // HACK: if the cubemap name starts with a !, the cubemap is nearest-filtered @@ -2960,7 +2961,6 @@ static rtexture_t *R_LoadCubemap(const char *basename) basename++; forcefilter = TEXF_FORCENEAREST; } - char name[256]; // must start 0 so the first loadimagepixels has no requested width/height cubemapsize = 0; cubemappixels = NULL; diff --git a/snd_main.c b/snd_main.c index c7bd33ae..7c5ca3d8 100644 --- a/snd_main.c +++ b/snd_main.c @@ -359,7 +359,7 @@ static void S_SoundInfo_f(cmd_state_t *cmd) Con_Printf("%5u total_channels\n", total_channels); } -void S_PauseSound_f(cmd_state_t *cmd) +static void S_PauseSound_f(cmd_state_t *cmd) { if( Cmd_Argc(cmd) != 2 ) { Con_Print("pausesound \n"); -- 2.39.2