Issue Information
-
#005078
-
0 - None Assigned
-
Duplicate
Issue Confirmations
-
Yes (0)No (0)
Originally posted by missingshrink
http://www.eathena.w...er&showbug=5078
Compiling fresh eA revision 14988 on 32-bit CentOS gives the following warnings:
clif.c: In function 'clif_bl_type':
clif.c:201: warning: comparison is always true due to limited range of data type
clif.c:203: warning: comparison is always true due to limited range of data type
clif.c: In function 'clif_set_unit_idle':
clif.c:827: warning: comparison is always true due to limited range of data type
clif.c: In function 'clif_setdisguise':
clif.c:1099: warning: comparison is always true due to limited range of data type
status.c: In function 'status_set_viewdata':
status.c:4495: warning: comparison is always true due to limited range of data type
status.c: In function 'status_change_start':
status.c:6283: warning: comparison is always true due to limited range of data type
status.c: In function 'status_change_end_':
status.c:6964: warning: comparison is always true due to limited range of data type
mob.c: In function 'mob_ai_sub_hard':
mob.c:1485: warning: comparison is always true due to limited range of data type
mob.c: In function 'mob_dead':
mob.c:2445: warning: comparison is always true due to limited range of data type
Some searching shows that this should be ignored, however, conditional statements wouldn't be conditional if they are always true...
http://www.eathena.w...er&showbug=5078
Compiling fresh eA revision 14988 on 32-bit CentOS gives the following warnings:
clif.c: In function 'clif_bl_type':
clif.c:201: warning: comparison is always true due to limited range of data type
clif.c:203: warning: comparison is always true due to limited range of data type
clif.c: In function 'clif_set_unit_idle':
clif.c:827: warning: comparison is always true due to limited range of data type
clif.c: In function 'clif_setdisguise':
clif.c:1099: warning: comparison is always true due to limited range of data type
status.c: In function 'status_set_viewdata':
status.c:4495: warning: comparison is always true due to limited range of data type
status.c: In function 'status_change_start':
status.c:6283: warning: comparison is always true due to limited range of data type
status.c: In function 'status_change_end_':
status.c:6964: warning: comparison is always true due to limited range of data type
mob.c: In function 'mob_ai_sub_hard':
mob.c:1485: warning: comparison is always true due to limited range of data type
mob.c: In function 'mob_dead':
mob.c:2445: warning: comparison is always true due to limited range of data type
Some searching shows that this should be ignored, however, conditional statements wouldn't be conditional if they are always true...