iamkevin Posted March 20, 2017 Posted March 20, 2017 I always encounter this kind of WARNING when i recompile my src. battle.c:4362:22: warning: unused variable ‘tstatus’ [-Wunused-variable] struct status_data *tstatus = status_get_status_data(target); ^ battle.c: In function ‘battle_calc_weapon_final_atk_modifiers’: battle.c:4965:27: warning: unused variable ‘sd’ [-Wunused-variable] struct map_session_data *sd = BL_CAST(BL_PC, src); how to remove this warning? and may i know what might be the possible impact of this warning in to my server? thank you! Quote
0 Emistry Posted March 20, 2017 Posted March 20, 2017 remove both line since its not used in the source mod that u created. 1 hour ago, iamkevin said: struct status_data *tstatus = status_get_status_data(target); ^ 1 hour ago, iamkevin said: struct map_session_data *sd = BL_CAST(BL_PC, src); Quote
0 iamkevin Posted March 20, 2017 Author Posted March 20, 2017 (edited) sir i am having problem with this again: skill.c: In function ‘skill_castend_nodamage_id’: skill.c:7318:17: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int c = 0, i, d = 0; ^ skill.c:5856:6: warning: shadowed declaration is here [-Wshadow] int i = 0; ^ Edited March 20, 2017 by iamkevin Quote
Question
iamkevin
I always encounter this kind of WARNING when i recompile my src.
how to remove this warning?
and may i know what might be the possible impact of this warning in to my server?
thank you!
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.