Hi. Im fixxing source warnings but I found few of them which I cant fix .
I know they are just warns but I want them fixxed
If somebody know how fix at least one mistake so write me please.
Thank you so much.
Code
- compiling BattleArena.cpp
- compiling FSM.cpp
- compiling MarkConvert.cpp
- compiling MarkImage.cpp
- compiling MarkManager.cpp
- compiling OXEvent.cpp
- compiling TrafficProfiler.cpp
- compiling ani.cpp
- compiling arena.cpp
- compiling banword.cpp
- compiling battle.cpp
- compiling blend_item.cpp
- compiling block_country.cpp
- compiling buffer_manager.cpp
- compiling building.cpp
- compiling castle.cpp
- compiling char.cpp
- compiling char_affect.cpp
- compiling char_battle.cpp
- compiling char_change_empire.cpp
- compiling char_horse.cpp
- compiling char_item.cpp
- compiling char_manager.cpp
- compiling char_quickslot.cpp
- compiling char_resist.cpp
- compiling char_skill.cpp
- compiling char_state.cpp
- compiling PetSystem.cpp
- compiling cmd.cpp
- compiling cmd_emotion.cpp
- compiling cmd_general.cpp
- compiling cmd_gm.cpp
- compiling cmd_oxevent.cpp
- compiling config.cpp
- compiling constants.cpp
- compiling crc32.cpp
- compiling cube.cpp
- char.cpp: In member function 'void CHARACTER::LoadGiftPage(int)':
- char.cpp:936: warning: comparison between signed and unsigned integer expressions
- char.cpp: In member function 'void CHARACTER::OpenMyShop(const char*, TShopItemTable*, BYTE, DWORD)':
- char.cpp:1077: warning: comparison between signed and unsigned integer expressions
- char.cpp:1099: warning: comparison between signed and unsigned integer expressions
- char.cpp: In member function 'void CHARACTER::UpdateShopItems()':
- char.cpp:1351: warning: comparison is always false due to limited range of data type
- char.cpp: In member function 'void CHARACTER::OpenShop(DWORD, const char*, bool)':
- char.cpp:1525: warning: comparison is always false due to limited range of data type
- char.cpp:1499: warning: unused variable 'c'
- compiling db.cpp
- compiling desc.cpp
- compiling desc_client.cpp
- compiling desc_manager.cpp
- compiling desc_p2p.cpp
- compiling dev_log.cpp
- compiling dungeon.cpp
- compiling empire_text_convert.cpp
- compiling entity.cpp
- cmd_general.cpp: In function 'void do_shop_update_item(CHARACTER*, const char*, int, int)':
- cmd_general.cpp:1647: warning: comparison is always false due to limited range of data type
- cmd_general.cpp:1651: warning: comparison is always false due to limited range of data type
- cmd_general.cpp:1656: warning: comparison is always false due to limited range of data type
- cmd_general.cpp: In function 'void do_shop_refresh_items(CHARACTER*, const char*, int, int)':
- cmd_general.cpp:1817: warning: operation on 'col' may be undefined
- cmd_general.cpp:1806: warning: unused variable 'c'
- config.cpp: In function 'void LoadShopConfig()':
- config.cpp:1603: warning: 'c.SShopPrice::days' may be used uninitialized in this function
- config.cpp:1603: warning: 'c.SShopPrice::price' may be used uninitialized in this function
- config.cpp:1605: warning: 'type' may be used uninitialized in this function
- config.cpp: In function 'void LoadIndexShopLimit()':
- config.cpp:1641: warning: 'limit' may be used uninitialized in this function
- config.cpp:1641: warning: 'index' may be used uninitialized in this function
- compiling entity_view.cpp
- compiling event.cpp
- compiling event_queue.cpp
- compiling exchange.cpp
- compiling file_loader.cpp
- compiling fishing.cpp
- compiling gm.cpp
- compiling guild.cpp
- compiling guild_manager.cpp
- compiling guild_war.cpp
- cmd_general.cpp: In function 'void do_shop_delete(CHARACTER*, const char*, int, int)':
- cmd_general.cpp:1893: warning: 'id' may be used uninitialized in this function
- cmd_general.cpp:1910: warning: 'id' may be used uninitialized in this function
- compiling horse_rider.cpp
- cmd_general.cpp: In function 'void do_shop_yang(CHARACTER*, const char*, int, int)':
- cmd_general.cpp:1487: warning: 'gold' may be used uninitialized in this function
- cmd_general.cpp: In function 'bool GetGift(CHARACTER*, DWORD, bool)':
- cmd_general.cpp:1193: warning: 'vnum' may be used uninitialized in this function
- cmd_general.cpp: In function 'void do_gift_get(CHARACTER*, const char*, int, int)':
- cmd_general.cpp:1303: warning: 'id' may be used uninitialized in this function
- compiling horsename_manager.cpp
- compiling input.cpp
- compiling input_auth.cpp
- cmd_general.cpp: In function 'void do_shop_update_item(CHARACTER*, const char*, int, int)':
- cmd_general.cpp:1534: warning: 'shop_id' may be used uninitialized in this function
- cmd_general.cpp:1548: warning: 'item_id' may be used uninitialized in this function
- cmd_general.cpp:1550: warning: 'price' may be used uninitialized in this function
- cmd_general.cpp:1566: warning: 'item_id' may be used uninitialized in this function
- cmd_general.cpp:1644: warning: 'display_pos' may be used uninitialized in this function
- cmd_general.cpp:1649: warning: 'pos' may be used uninitialized in this function
- cmd_general.cpp:1654: warning: 'window_type' may be used uninitialized in this function
- cmd_general.cpp:1659: warning: 'price' may be used uninitialized in this function
- compiling input_db.cpp
- compiling input_login.cpp
- compiling input_main.cpp
- compiling input_p2p.cpp
- compiling input_teen.cpp
- compiling input_udp.cpp
- compiling ip_ban.cpp
- compiling item.cpp
- char.cpp: In member function 'void CHARACTER::DeleteMyShop()':
- char.cpp:1603: warning: 'gold' may be used uninitialized in this function
- char.cpp: In member function 'void CHARACTER::UpdateShopItems()':
- char.cpp:1369: warning: 'val' may be used uninitialized in this function
- char.cpp:1368: warning: 'attr' may be used uninitialized in this function
- char.cpp:1362: warning: 'soc' may be used uninitialized in this function
- char.cpp:1328: warning: 'id' may be used uninitialized in this function
- compiling item_addon.cpp
- char.cpp: In member function 'void CHARACTER::OpenShop(DWORD, const char*, bool)':
- char.cpp:1547: warning: 'val' may be used uninitialized in this function
- char.cpp:1546: warning: 'attr' may be used uninitialized in this function
- char.cpp:1540: warning: 'soc' may be used uninitialized in this function
- char.cpp:1508: warning: 'id' may be used uninitialized in this function
- compiling item_attribute.cpp
- compiling item_manager.cpp
- compiling item_manager_idrange.cpp
- input_db.cpp: In function 'long int shop_event(LPEVENT, long int)':
- input_db.cpp:529: warning: comparison between signed and unsigned integer expressions
- input_db.cpp:516: warning: unused variable 'pc'
- input_db.cpp: In function 'void CreateShops()':
- input_db.cpp:629: warning: unused variable 'vid'
- input_db.cpp: In member function 'void CInputDB::ShopClose(const char*)':
- input_db.cpp:1209: warning: unused variable 'pc'
- input_db.cpp: In member function 'void CInputDB::ShopName(const char*)':
- input_db.cpp:1232: warning: unused variable 'pc'
- input_db.cpp: In member function 'void CInputDB::ShopUpdateItem(const char*)':
- input_db.cpp:1257: warning: unused variable 'pc'
- compiling locale.cpp
- compiling locale_service.cpp
- compiling log.cpp
- compiling login_data.cpp
- compiling lzo_manager.cpp
- compiling marriage.cpp
- compiling matrix_card.cpp
- compiling messenger_manager.cpp
- compiling mining.cpp
- compiling mob_manager.cpp
- input_db.cpp: In function 'long int fix_shop_event(LPEVENT, long int)':
- input_db.cpp:571: warning: 'count' may be used uninitialized in this function
- input_db.cpp:571: warning: 'vnum' may be used uninitialized in this function
- input_db.cpp:571: warning: 'pid' may be used uninitialized in this function
- input_db.cpp:571: warning: 'id' may be used uninitialized in this function
- input_db.cpp: In function 'void CreateShops()':
- input_db.cpp:629: warning: 'id' may be used uninitialized in this function
- compiling monarch.cpp
- compiling motion.cpp
- compiling over9refine.cpp
- compiling p2p.cpp
- compiling packet_info.cpp
- compiling party.cpp
- compiling passpod.cpp
- compiling pcbang.cpp
- compiling polymorph.cpp
- compiling priv_manager.cpp
- compiling pvp.cpp
- compiling buff_items.cpp
- compiling talisman_of_undying.cpp
- compiling questevent.cpp
- compiling questlua.cpp
- compiling questlua_affect.cpp
- compiling questlua_arena.cpp
- compiling questlua_ba.cpp
- compiling questlua_building.cpp
- compiling questlua_danceevent.cpp
- compiling questlua_dungeon.cpp
- compiling questlua_forked.cpp
- compiling questlua_game.cpp
- compiling questlua_global.cpp
- compiling questlua_guild.cpp
- compiling questlua_horse.cpp
- compiling questlua_pet.cpp
- compiling questlua_item.cpp
- compiling questlua_marriage.cpp
- compiling questlua_mgmt.cpp
- compiling questlua_monarch.cpp
- compiling questlua_npc.cpp
- compiling questlua_oxevent.cpp
- compiling questlua_party.cpp
- compiling questlua_pc.cpp
- compiling questlua_quest.cpp
- compiling questlua_target.cpp
- compiling questmanager.cpp
- compiling questnpc.cpp
- compiling questpc.cpp
- compiling refine.cpp
- compiling regen.cpp
- compiling safebox.cpp
- refine.cpp: In member function 'bool CRefineManager::GetPercentage(CHARACTER*, BYTE, BYTE, BYTE, BYTE, CItem*)':
- refine.cpp:60: warning: comparison is always false due to limited range of data type
- refine.cpp:60: warning: comparison is always false due to limited range of data type
- refine.cpp:60: warning: comparison is always false due to limited range of data type
- compiling sectree.cpp
- compiling sectree_manager.cpp
- compiling sequence.cpp
- compiling shop.cpp
- compiling skill.cpp
- compiling start_position.cpp
- compiling target.cpp
- compiling text_file_loader.cpp
- compiling trigger.cpp
- compiling utils.cpp
- compiling vector.cpp
- compiling war_map.cpp
- compiling wedding.cpp
- compiling xmas_event.cpp
- compiling version.cpp
- compiling panama.cpp
- compiling threeway_war.cpp
- shop.cpp: In member function 'virtual int CShop::Buy(CHARACTER*, BYTE)':
- shop.cpp:250: warning: comparison between signed and unsigned integer expressions
- shop.cpp:222: warning: unused variable 'pkSelectedItem'
- shop.cpp: In member function 'void CShop::SetPrivShopItems(std::vector<TShopItemTable*, std::allocator<TShopItemTable*> >)':
- shop.cpp:556: warning: comparison is always false due to limited range of data type
- compiling map_location.cpp
- compiling auth_brazil.cpp
- compiling BlueDragon.cpp
- compiling BlueDragon_Binder.cpp
- compiling DragonLair.cpp
- compiling questlua_dragonlair.cpp
- compiling maintenance.cpp
- compiling HackShield.cpp
- compiling HackShield_Impl.cpp
- compiling char_hackshield.cpp
- compiling skill_power.cpp
- compiling affect.cpp
- compiling SpeedServer.cpp
- compiling questlua_speedserver.cpp
- compiling XTrapManager.cpp
- compiling localization.cpp
- compiling bank.cpp
- bank.cpp:122:121: warning: multi-character character constant
- bank.cpp:122:129: warning: character constant too long for its type
- compiling auction_manager.cpp
- maintenance.cpp:40: warning: 'global_time_maintenance' initialized and declared 'extern'
- compiling FileMonitor_FreeBSD.cpp
- compiling ClientPackageCryptInfo.cpp
- localization.cpp: In member function 'bool LocalizationManager::Send_Localization_Save(CHARACTER*, int)':
- localization.cpp:128: warning: comparison between signed and unsigned integer expressions
- localization.cpp:161: warning: control reaches end of non-void function
- localization.cpp: In member function 'bool LocalizationManager::Send_Localization_Teleport(CHARACTER*, int)':
- localization.cpp:108: warning: control reaches end of non-void function
- localization.cpp: In member function 'bool LocalizationManager::Send_Localization_Open(CHARACTER*, bool)':
- localization.cpp:66: warning: control reaches end of non-void function
- bank.cpp: In function 'bool GetIsUsedRestrictedChars(CHARACTER*, const char*, const char*, const char*, const char*)':
- bank.cpp:122: warning: overflow in implicit constant conversion
- bank.cpp:122: warning: overflow in implicit constant conversion
- bank.cpp:127: warning: comparison between signed and unsigned integer expressions
- bank.cpp: In member function 'bool BankManager::Send_ChangePassword(CHARACTER*, const char*, const char*, const char*, const char*)':
- bank.cpp:511: warning: control reaches end of non-void function
- bank.cpp: In member function 'bool BankManager::Send_Money(CHARACTER*, const char*, const char*, const char*, const char*)':
- bank.cpp:446: warning: control reaches end of non-void function
- bank.cpp: In member function 'bool BankManager::Send_WithdrawMoney(CHARACTER*, const char*, const char*, const char*)':
- bank.cpp:380: warning: control reaches end of non-void function
- bank.cpp: In member function 'bool BankManager::Send_AddMoney(CHARACTER*, const char*, const char*, const char*)':
- bank.cpp:317: warning: control reaches end of non-void function
- bank.cpp: In member function 'bool BankManager::Send_Create(CHARACTER*, const char*, const char*)':
- bank.cpp:240: warning: control reaches end of non-void function
- bank.cpp: In function 'bool Send_Logs(CHARACTER*, const char*)':
- bank.cpp:202: warning: control reaches end of non-void function
- bank.cpp: In function 'bool ReturnCommand(CHARACTER*, int, const char*)':
- bank.cpp:75: warning: control reaches end of non-void function
- compiling cipher.cpp
- compiling buff_on_attributes.cpp
- compiling dragon_soul_table.cpp
- compiling DragonSoul.cpp
- compiling teleportation_map.cpp
- compiling group_text_parse_tree.cpp
- compiling char_dragonsoul.cpp
- compiling questlua_dragonsoul.cpp
- compiling shop_manager.cpp
- compiling shopEx.cpp
- compiling item_manager_read_tables.cpp
- compiling shutdown_manager.cpp
- compiling minilzo.c
- compiling main.cpp
- shop_manager.cpp: In member function 'bool CShopManager::CreateOfflineShop(CHARACTER*, const char*, std::vector<TShopItemTable*, std::allocator<TShopItemTable*> >, DWORD)':
- shop_manager.cpp:199: warning: comparison between signed and unsigned integer expressions
- shop_manager.cpp: In member function 'bool CShopManager::StartOfflineShop(DWORD, bool)':
- shop_manager.cpp:254: warning: 'z' may be used uninitialized in this function
- shop_manager.cpp:254: warning: 'y' may be used uninitialized in this function
- shop_manager.cpp:254: warning: 'x' may be used uninitialized in this function
- shop_manager.cpp:254: warning: 'map_index' may be used uninitialized in this function
- shop_manager.cpp:253: warning: 'time' may be used uninitialized in this function
- shop_manager.cpp:253: warning: 'pid' may be used uninitialized in this function
- linking ../game_r40275