diff --git a/fbxa/waypoint.r b/fbxa/waypoint.r index 5b02b3c..db9cafd 100644 --- a/fbxa/waypoint.r +++ b/fbxa/waypoint.r @@ -344,7 +344,7 @@ tripping the runaway loop counter direct_route = FALSE; } } - if (waypoint_thinker.@this = [waypoint_queue removeItemAtHead]) { + if ((waypoint_thinker.@this = [waypoint_queue removeItemAtHead])) { local id obj = waypoint_thinker.@this; local IMP imp = [obj methodForSelector: @selector (waypointThink)]; waypoint_thinker.think = (void ()) imp; diff --git a/klik/Makefile b/klik/Makefile index 4dd43cf..c8cf057 100644 --- a/klik/Makefile +++ b/klik/Makefile @@ -9,7 +9,7 @@ CPP=cpp CPPFLAGS=-I. -Iweapons -Imdl -Iact -Imapents QFCC=qfcc -QFCCFLAGS=-q --warn all --code v6only $(CPPFLAGS) +QFCCFLAGS=-q --warn all,error --code v6only $(CPPFLAGS) ############################################### diff --git a/klik/mapents/mapents_util.qc b/klik/mapents/mapents_util.qc index e0abece..7b57bd1 100644 --- a/klik/mapents/mapents_util.qc +++ b/klik/mapents/mapents_util.qc @@ -59,7 +59,7 @@ void() util_map_entity_cull = { oldself = self; self = world; - while (self = find(self, targetname, self.target)) { + while ((self = find(self, targetname, self.target))) { if (self == oldself) continue; diff --git a/klik/qw/sz_watch.qc b/klik/qw/sz_watch.qc index 90bc7dd..ebd9957 100644 --- a/klik/qw/sz_watch.qc +++ b/klik/qw/sz_watch.qc @@ -76,7 +76,7 @@ void() SZ_init = { sv_signon_buf_remaining = SV_SIGNON_BUFFERS; sv_signon_remaining = SV_MAX_DATAGRAM; - while (self = nextent(self)) + while ((self = nextent(self))) SZ_GetSpace_signon(SIZEOF_BASELINE); self = world; }; diff --git a/klik/server.qc b/klik/server.qc index 58e8f2b..4591bfc 100644 --- a/klik/server.qc +++ b/klik/server.qc @@ -39,7 +39,7 @@ void() main = { /* Must be first. */ max_clients = 0; walk = world; - while (walk = nextent(walk)) max_clients++; + while ((walk = nextent(walk))) max_clients++; sv_spawning = SV_FRAMES_BEFORE_SPAWN;