• 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!

[trunk] lots of compilling warnings

ntmr

hi!
Senator
Joined
Jul 7, 2007
Messages
1,835
Reaction score
15
Location
Santa Catarina, Brazil
Here is the list :rolleyes: (rev. 734)

Code:
../chat.cpp: In member function `bool Chat::talkToChannel(Player*, SpeakClasses, const std::string&, uint16_t)':
../chat.cpp:600: warning: comparison between signed and unsigned integer expressions


In file included from ../commands.cpp:34:
../ioban.h:38: warning: `class IOBan' has virtual functions but non-virtual destructor


../creature.cpp: In member function `bool Creature::getKillers(Creature**, Creature**)':
../creature.cpp:908: warning: comparison between signed and unsigned integer expressions

../creature.cpp: In member function `bool Creature::hasBeenAttacked(uint32_t)':
../creature.cpp:921: warning: comparison between signed and unsigned integer expressions

../creature.cpp: In member function `virtual void Creature::onGainExperience(uint64_t)':
../creature.cpp:1310: warning: int format, different type arg (arg 3)

../creature.cpp: In member function `virtual void Creature::onGainSharedExperience(uint64_t)':

../creature.cpp:1318: warning: int format, different type arg (arg 3)


In file included from ../game.cpp:53:
../ioban.h:38: warning: `class IOBan' has virtual functions but non-virtual destructor

../game.cpp: In member function `bool Game::violationWindow(uint32_t, std::string, int32_t, int32_t, std::string, std::string, bool)':
../game.cpp:4518: warning: comparison between signed and unsigned integer expressions


In file included from ../ioban.cpp:24:
../ioban.h:38: warning: `class IOBan' has virtual functions but non-virtual destructor

../ioban.cpp: In member function `bool IOBan::isIpBanished(uint32_t)':
../ioban.cpp:45: warning: comparison between signed and unsigned integer expressions

../ioban.cpp: In member function `bool IOBan::isBanished(uint32_t)':
../ioban.cpp:93: warning: comparison between signed and unsigned integer expressions


../item.cpp: In member function `virtual xmlNode* Item::serialize()':
../item.cpp:381: warning: int format, time_t arg (arg 3)


../luascript.cpp: In static member function `static int32_t LuaScriptInterface::internalGetPlayerInfo(lua_State*, PlayerInfo_t)':
../luascript.cpp:1606: warning: unused variable 'tile'
../luascript.cpp:1608: warning: unused variable 'stackpos'


C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_list.h: In copy constructor `std::list<_Tp, _Alloc>::list(const std::list<_Tp, _Alloc>&) [with _Tp = Creature*, _Alloc = std::allocator<Creature*>]':
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_list.h:212:   instantiated from `std::list<_Tp, _Alloc>::list(const std::list<_Tp, _Alloc>&) [with _Tp = Creature*, _Alloc = std::allocator<Creature*>]'
../map.cpp:455:   instantiated from here
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_list.h:435: warning: '__p' might be used uninitialized in this function


In file included from ../player.cpp:38:
../ioban.h:38: warning: `class IOBan' has virtual functions but non-virtual destructor

../player.cpp: In member function `void Player::gainExperience(uint64_t)':
../player.cpp:3290: warning: comparison between signed and unsigned integer expressions

C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_list.h: In member function `void Player::clearPartyInvitations()':
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_list.h:435: warning: '__p' might be used uninitialized in this function


In file included from ../playerbox.cpp:26:
../ioban.h:38: warning: `class IOBan' has virtual functions but non-virtual destructor


In file included from ../protocolgame.cpp:42:
../ioban.h:38: warning: `class IOBan' has virtual functions but non-virtual destructor

../protocolgame.cpp: In member function `bool ProtocolGame::login(const std::string&, uint32_t, const std::string&, uint16_t, uint8_t)':
../protocolgame.cpp:309: warning: unused variable 'timeNow'


In file included from ../protocollogin.cpp:30:

../ioban.h:38: warning: `class IOBan' has virtual functions but non-virtual destructor
I don't know if any of these are realy important, but a think that it should be fixed :thumbup:
 
Just remove -Werror from Makefile and you can run the server without problems (like I did).
Also please remember, that server is in devel stage, so You should be happy it is compilable, runable and in my opinion stable.
These warnings will be of course fixed in their time - now we concentrate on new features, then on fixing bugs.
 
Back
Top