Issue information

Issue ID
#5078
Status
Duplicate
Severity
None
Started
Hercules Elf Bot
Nov 3, 2011 18:59
Last Post
Hercules Elf Bot
Mar 15, 2012 13:15
Confirmation
N/A

Hercules Elf Bot - Nov 3, 2011 18:59

Originally posted by [b]missingshrink[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&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...