• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compilling warning

ntmr

hi!
Senator
Joined
Jul 7, 2007
Messages
1,835
Reaction score
15
Location
Santa Catarina, Brazil
Hello.

Can fix a little compilling warning on ban.cpp of TFS? >.<

You get that warning only compilling with the -Wall flag, I want this fixed because may cause crashes when optimize the compilation with -O2 or -O3.

Code:
ban.cpp: In member function `virtual bool IOBan::loadBans(Ban&)':
ban.cpp:455: warning: comparison between signed and unsigned integer expressions
ban.cpp:475: warning: comparison between signed and unsigned integer expressions

Thanks! :thumbup:
 
IOBan class will be rewritten.
Though, I'll try to fix that.
Btw. I am using -O2 and no crashes till now - anyway, -Optimizations won't help alot. I found a temporial solution for the lag problem - I've added:
Code:
-funroll-all-loops
-fomit-frame-pointer
to compiler flags, and my server runs for 6 hours with 80-100 players online.
 
Last edited:
Back
Top