Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

Issue Confirmations

  • Yes (0)No (0)
Photo

compilation warnings

Posted by Hercules Bot on 03 November 2011 - 06:59 PM

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...