engine: fix more warnings

This commit is contained in:
Alibek Omarov
2026-05-13 10:46:44 +05:00
parent be6571a6a2
commit ff8efebba2
5 changed files with 12 additions and 9 deletions

View File

@@ -943,11 +943,11 @@ void GAME_EXPORT pfnResetTutorMessageDecayData( void )
static void Test_LZSS( void )
{
char poison1[8192];
char poison1[8192] MAYBE_UNUSED;
byte in[256];
char poison2[8192];
char poison2[8192] MAYBE_UNUSED;
byte out[256];
char poison3[8192];
char poison3[8192] MAYBE_UNUSED;
lzss_header_t *hdr = (lzss_header_t *)in;
uint result;

View File

@@ -92,7 +92,7 @@ void COM_UnMunge2( byte *data, size_t len, int seq )
}
#if XASH_ENGINE_TESTS // not used in client, keep for tests only
void COM_Munge3( byte *data, size_t len, int seq )
static void COM_Munge3( byte *data, size_t len, int seq )
{
COM_GenericMunge( data, len, seq, mungify_table3, false );
}

View File

@@ -594,7 +594,7 @@ qboolean Sys_NewInstance( const char *gamedir, const char *finalmsg )
exit( 0 );
#else
int exelen;
char *exe, **newargs;
char *exe = NULL, **newargs;
// don't use engine allocation utils here
// they will be freed after Host_Shutdown