From 516ea43bd5c72059943cd626150f188e8a7c75e5 Mon Sep 17 00:00:00 2001 From: div0 Date: Thu, 10 Jul 2008 06:04:04 +0000 Subject: [PATCH] silence all fteqcc -Wall -Wno-mundane warnings (that is, all but "unreferenced function") git-svn-id: svn://svn.icculus.org/nexuiz/trunk@3805 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/ctf.qc | 14 +++++++------- data/qcsrc/server/g_decors.qc | 4 ++-- data/qcsrc/server/g_world.qc | 2 +- data/qcsrc/server/vote.qc | 20 ++++++++++---------- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/data/qcsrc/server/ctf.qc b/data/qcsrc/server/ctf.qc index f6c519988..a31c3219c 100644 --- a/data/qcsrc/server/ctf.qc +++ b/data/qcsrc/server/ctf.qc @@ -311,11 +311,11 @@ void FlagTouch() bprint(other.netname, "^7 captured the ", other.flagcarried.netname, " in ", s, ", failing to break ", strcat(h0, " record of ", s0, " seconds\n")); } - other.captures++; + other.captures += 1; if(other.team == COLOR_TEAM1) - caps_team1++; + ++caps_team1; else if(other.team == COLOR_TEAM2) - caps_team2++; + ++caps_team2; else print("Unknown team captured the flag!\n"); ctf_UpdateCaptures(MSG_BROADCAST); @@ -389,7 +389,7 @@ void FlagTouch() else UpdateFrags(other, cvar("g_ctf_flagscore_return_rogue")); } - other.returns++; + other.returns += 1; ctf_UpdateReturns(MSG_BROADCAST); LogCTF("return", self.team, other); sound (self, CHAN_AUTO, self.noise1, 1, ATTN_NONE); @@ -774,12 +774,12 @@ void ctf_setstatus() { if(flag.team == COLOR_TEAM1) { - if(redflags-- == 0) // happens exactly once + if(--redflags == -1) // happens exactly once (redflags is in 0..count-1, and will --'ed count times) ctf_setstatus2(flag, IT_RED_FLAG_TAKEN); } else if(flag.team == COLOR_TEAM2) { - if(blueflags-- == 0) // happens exactly once + if(--blueflags == -1) // happens exactly once ctf_setstatus2(flag, IT_BLUE_FLAG_TAKEN); } } @@ -803,7 +803,7 @@ entity(float cteam) ctf_team_has_commander = void(entity e, float st) ctf_setstate = { e.ctf_state = st; - e.version ++; + ++e.version; }; void(float cteam) ctf_new_commander = diff --git a/data/qcsrc/server/g_decors.qc b/data/qcsrc/server/g_decors.qc index ebfe925a6..ba31c3737 100644 --- a/data/qcsrc/server/g_decors.qc +++ b/data/qcsrc/server/g_decors.qc @@ -176,7 +176,7 @@ void decorframe() entity newdecor() { local entity e; - numdecors++; + ++numdecors; e = spawn(); e.classname = "decor"; return e; @@ -184,7 +184,7 @@ entity newdecor() void removedecor(entity e) { - numdecors--; + --numdecors; remove(e); }; diff --git a/data/qcsrc/server/g_world.qc b/data/qcsrc/server/g_world.qc index 2e9bc69c2..dedfcdd07 100644 --- a/data/qcsrc/server/g_world.qc +++ b/data/qcsrc/server/g_world.qc @@ -267,7 +267,7 @@ void spawnfunc_worldspawn (void) maxclients = 0; while(head) { - maxclients++; + ++maxclients; head = nextent(head); } diff --git a/data/qcsrc/server/vote.qc b/data/qcsrc/server/vote.qc index ea24e5e3e..5be98e7d7 100644 --- a/data/qcsrc/server/vote.qc +++ b/data/qcsrc/server/vote.qc @@ -402,7 +402,7 @@ string VoteParse() { vote = argv(2); while(argv(index) != "") { vote = strcat(vote, " ", argv(index)); - index++; + ++index; } // necessary for some of the string operations @@ -419,7 +419,7 @@ float VoteAllowed(string votecommand) { if(votecommand == argv(index)) { return TRUE; } - index++; + ++index; } return FALSE; } @@ -551,23 +551,23 @@ void VoteCount() { FOR_EACH_REALCLIENT(player) { if(player.vote_vote == -1) { - nocount++; + ++nocount; } else if(player.vote_vote == 1) { - yescount++; + ++yescount; } else if(player.vote_vote == -2) { - abstaincount++; + ++abstaincount; } - playercount++; + ++playercount; //do the same for real players if(player.classname == "player") { if(player.vote_vote == -1) { - realplayernocount++; + ++realplayernocount; } else if(player.vote_vote == 1) { - realplayeryescount++; + ++realplayeryescount; } else if(player.vote_vote == -2) { - realplayerabstaincount++; + ++realplayerabstaincount; } - realplayercount++; + ++realplayercount; } } -- 2.39.2