From c671916fc7d1257d5191cfd7c31153b6c2951478 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 28 Jul 2017 20:00:56 +0000 Subject: [PATCH] sv_main.c (SV_Init): use a return instead of a dummy assignment after Sys_Error to silence compiler git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1442 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/sv_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Quake/sv_main.c b/Quake/sv_main.c index 5b9e1206..91deeac9 100644 --- a/Quake/sv_main.c +++ b/Quake/sv_main.c @@ -127,7 +127,7 @@ void SV_Init (void) default: Sys_Error ("Bad protocol version request %i. Accepted values: %i, %i, %i.", sv_protocol, PROTOCOL_NETQUAKE, PROTOCOL_FITZQUAKE, PROTOCOL_RMQ); - p = "Unknown"; + return; /* silence compiler */ } Sys_Printf ("Server using protocol %i (%s)\n", sv_protocol, p); } @@ -566,7 +566,7 @@ void SV_WriteEntitiesToClient (edict_t *clent, sizebuf_t *msg) // find the client's PVS VectorAdd (clent->v.origin, clent->v.view_ofs, org); pvs = SV_FatPVS (org, sv.worldmodel); - + // send over all entities (excpet the client) that touch the pvs ent = NEXT_EDICT(sv.edicts); for (e=1 ; e