From: Rudolf Polzer Date: Fri, 8 Jul 2011 19:41:21 +0000 (+0200) Subject: remove warnings X-Git-Tag: xonotic-v0.5.0~148^2~58 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=59dc0189e91131476b5716b95b5982b548d2b806;p=xonotic%2Fxonotic-data.pk3dir.git remove warnings --- diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index fb9a1bb74..95a01ab0e 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -827,8 +827,6 @@ void Ent_ClientData() if(newspectatee_status != spectatee_status) { - float i; - // clear race stuff race_laptime = 0; race_checkpointtime = 0; diff --git a/qcsrc/client/miscfunctions.qc b/qcsrc/client/miscfunctions.qc index da09230db..0ba609770 100644 --- a/qcsrc/client/miscfunctions.qc +++ b/qcsrc/client/miscfunctions.qc @@ -319,9 +319,6 @@ vector HUD_GetFontsize(string cvarname) float PreviewExists(string name) { - float f; - string file; - if(autocvar_cl_readpicture_force) return false; diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index 37ace81a3..67b7f746c 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -981,7 +981,7 @@ vector HUD_DrawScoreboardAccuracyStats(vector pos, vector rgb, vector bg_size) if(getstati(STAT_SWITCHWEAPON) == WEP_MINSTANEX) g_minstagib = 1; // TODO: real detection for minstagib? - float weapon_stats, weapon_number; + float weapon_stats; if (!acc_levels) rgb = '1 1 1'; diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 28d0d161e..e2f531778 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -150,7 +150,6 @@ void Draw_ShowNames_All() float i; for(i = 0; i < maxclients; ++i) { - vector o; float t; t = GetPlayerColor(i); if(t == COLOR_SPECTATOR) diff --git a/qcsrc/client/shownames.qh b/qcsrc/client/shownames.qh index a17f31d42..50380e820 100644 --- a/qcsrc/client/shownames.qh +++ b/qcsrc/client/shownames.qh @@ -1,5 +1,4 @@ .float healthvalue; .float armorvalue; .float sameteam; -.float the_entnum; diff --git a/qcsrc/server/bot/havocbot/role_keepaway.qc b/qcsrc/server/bot/havocbot/role_keepaway.qc index 30d96499a..8ea23f1af 100644 --- a/qcsrc/server/bot/havocbot/role_keepaway.qc +++ b/qcsrc/server/bot/havocbot/role_keepaway.qc @@ -9,7 +9,7 @@ entity ka_ball; void havocbot_goalrating_ball(float ratingscale, vector org) { - local float t, distance; + local float t; local entity ball_owner; ball_owner = ka_ball.owner; diff --git a/qcsrc/server/pathlib/pathlib.qh b/qcsrc/server/pathlib/pathlib.qh index 2616a7736..71d13caa4 100644 --- a/qcsrc/server/pathlib/pathlib.qh +++ b/qcsrc/server/pathlib/pathlib.qh @@ -18,7 +18,6 @@ void pathlib_showpath2(entity path); entity openlist; entity closedlist; -entity edgelist; entity goal_node; entity start_node; @@ -106,7 +105,6 @@ var float pathlib_makenode(entity parent,vector start, vector to, vector goal,f var float buildpath_nodefilter(vector n,vector c,vector p); var float pathlib_wpp_waypointcallback(entity wp, entity wp_prev); -var const float pathlib_wpp_wpcb_null(); #ifdef DEBUGPATHING #include "debug.qc" diff --git a/qcsrc/server/scores.qh b/qcsrc/server/scores.qh index f94b68332..3f97eb5c8 100644 --- a/qcsrc/server/scores.qh +++ b/qcsrc/server/scores.qh @@ -3,6 +3,7 @@ entity scores_initialized; // non-world when scores labels/rules have been set .float teamscores[MAX_TEAMSCORE]; .float scores_accumulated[MAX_SCORE]; // for player stats only +FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(scores_accumulated); /** * Attaches a PlayerScore entity to a player. Use that in ClientConnect. diff --git a/qcsrc/server/tturrets/include/turrets_early.qh b/qcsrc/server/tturrets/include/turrets_early.qh index d52c00307..46f1e5c2c 100644 --- a/qcsrc/server/tturrets/include/turrets_early.qh +++ b/qcsrc/server/tturrets/include/turrets_early.qh @@ -479,7 +479,6 @@ float TNSF_SETUP = 8; float TNSF_ANG = 16; float TNSF_AVEL = 32; float TNSF_MOVE = 64; -.float anim_start_time; float TNSF_ANIM = 128; float TNSF_FULL_UPDATE = 16777215; diff --git a/qcsrc/server/w_tuba.qc b/qcsrc/server/w_tuba.qc index 693612de9..117d32cb9 100644 --- a/qcsrc/server/w_tuba.qc +++ b/qcsrc/server/w_tuba.qc @@ -3,7 +3,6 @@ REGISTER_WEAPON(TUBA, w_tuba, 0, 1, WEP_FLAG_HIDDEN | WEP_TYPE_SPLASH, BOT_PICKU #else #ifdef SVQC //#define TUBA_NOTE(n) strcat("weapons/tuba_note", ftos(n), ".wav") -.float tuba_notecount; .entity tuba_note; .float tuba_smoketime; diff --git a/qcsrc/warpzonelib/server.qc b/qcsrc/warpzonelib/server.qc index 861b2e01f..94209205b 100644 --- a/qcsrc/warpzonelib/server.qc +++ b/qcsrc/warpzonelib/server.qc @@ -298,7 +298,7 @@ float WarpZone_Camera_Send(entity to, float sendflags) float WarpZone_CheckProjectileImpact(entity player) { - vector o0, a0, v0; + vector o0, v0; o0 = player.origin + player.view_ofs; v0 = player.velocity;