Fix various warnings

This commit is contained in:
Tim Angus committed 2025-09-07 17:03:20 +01:00
1 parent 549b686e22
commit f976711fb4
58 files changed
+384 -425

No files matched your search

+5 -1
View File
@@ -1410,6 +1410,8 @@ void Com_TouchMemory( void ) {
end = Sys_Milliseconds();
(void)sum; // Suppress warning
Com_Printf( "Com_TouchMemory: %i msec\n", end - start );
}
@@ -1523,6 +1525,8 @@ void Hunk_SmallLog( void) {
#ifdef HUNK_DEBUG
Com_sprintf(buf, sizeof(buf), "size = %8d: %s, line: %d (%s)\r\n", locsize, block->file, block->line, block->label);
FS_Write(buf, strlen(buf), logfile);
#else
(void)locsize; // Suppress warning
#endif
size += block->size;
numBlocks++;
@@ -2574,7 +2578,7 @@ static void Com_DetectAltivec(void)
static qboolean altivec = qfalse;
static qboolean detected = qfalse;
if (!detected) {
altivec = ( Sys_GetProcessorFeatures( ) & CF_ALTIVEC );
altivec = !!( Sys_GetProcessorFeatures( ) & CF_ALTIVEC );
detected = qtrue;
}