Problema warninguri sursa game

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
MetinRegen
Nou Venit

Nou Venit
Mesaje: 4
Membru din: 14 Ian 2018, 13:13
Server: Incepator
Regat: Jinno
Aprecieri: 0
Mulţumiri: 0
Medalii

*Problemă: aceste warninguri
cmd_gm.cpp:2145:9: warning: multi-character character constant
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:503: warning: NULL used in arithmetic
config.cpp:527: warning: NULL used in arithmetic
config.cpp:551: warning: NULL used in arithmetic
config.cpp:573: warning: unused variable 'line'
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:1710: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5239: warning: unused variable 'wCell'
char_item.cpp:5240: warning: unused variable 'window_type'
db.cpp: In member function 'void DBManager::Query(const char*, ...)':
db.cpp:93: warning: comparison between signed and unsigned integer expressions
db.cpp: In member function 'SQLMsg* DBManager::DirectQuery(const char*, ...)':
db.cpp:103: warning: comparison between signed and unsigned integer expressions
acce.cpp: In function 'void FN_remove_material(CItem**, DWORD, int, int)':
acce.cpp:87: warning: unused variable 'count'
acce.cpp: In function 'bool Acce_InformationInitialize()':
acce.cpp:943: warning: comparison between signed and unsigned integer expressions
cmd_general.cpp: In function 'void do_shop_update_item(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1518: warning: comparison is always false due to limited range of data type
cmd_general.cpp:1522: warning: comparison is always false due to limited range of data type
cmd_general.cpp:1527: 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:1693: warning: operation on 'col' may be undefined
cmd_general.cpp:1682: warning: unused variable 'c'
entity_view.cpp: In member function 'void CFuncViewInsert::operator()(CEntity*)':
entity_view.cpp:112: warning: comparison between signed and unsigned integer expressions
config.cpp: In function 'void LoadIndexShopLimit()':
config.cpp:362: warning: 'limit' may be used uninitialized in this function
config.cpp:362: warning: 'index' may be used uninitialized in this function
config.cpp: In function 'void LoadShopConfig()':
config.cpp:324: warning: 'c.SShopPrice::days' may be used uninitialized in this function
config.cpp:324: warning: 'c.SShopPrice::price' may be used uninitialized in this function
config.cpp:326: warning: 'type' may be used uninitialized in this function
input_db.cpp: In function 'long int shop_event(LPEVENT, long int)':
input_db.cpp:89: warning: comparison between signed and unsigned integer expressions
input_db.cpp:76: warning: unused variable 'pc'
input_db.cpp: In function 'void CreateShops()':
input_db.cpp:189: warning: unused variable 'vid'
input_db.cpp: In member function 'void CInputDB::ShopClose(const char*)':
input_db.cpp:234: warning: unused variable 'pc'
input_db.cpp: In member function 'void CInputDB::ShopName(const char*)':
input_db.cpp:257: warning: unused variable 'pc'
input_db.cpp: In member function 'void CInputDB::ShopUpdateItem(const char*)':
input_db.cpp:282: warning: unused variable 'pc'
input_db.cpp: In function 'long int fix_shop_event(LPEVENT, long int)':
input_db.cpp:131: warning: 'count' may be used uninitialized in this function
input_db.cpp:131: warning: 'vnum' may be used uninitialized in this function
input_db.cpp:131: warning: 'pid' may be used uninitialized in this function
input_db.cpp:131: warning: 'id' may be used uninitialized in this function
input_db.cpp: In function 'void CreateShops()':
input_db.cpp:189: warning: 'id' may be used uninitialized in this function
input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
input_main.cpp:746: warning: unused variable 'len_global'
char.cpp: In member function 'void CHARACTER::LoadGiftPage(int)':
char.cpp:1949: warning: comparison between signed and unsigned integer expressions
char.cpp: In member function 'void CHARACTER::OpenMyShop(const char*, TShopItemTable*, BYTE, DWORD)':
char.cpp:2090: warning: comparison between signed and unsigned integer expressions
char.cpp:2112: warning: comparison between signed and unsigned integer expressions
char.cpp: In member function 'void CHARACTER::UpdateShopItems()':
char.cpp:2366: 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:2540: warning: comparison is always false due to limited range of data type
char.cpp:2514: warning: unused variable 'c'
locale_service.cpp: In function 'void __CheckPlayerSlot(const std::string&)':
locale_service.cpp:1035: warning: format '%d' expects type 'int', but argument 2 has type 'long long int'
log.cpp:352:2: warning: no newline at end of file
questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
questlua_npc.cpp:293: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
questlua_npc.cpp:309: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
questlua_npc.cpp:324: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
questlua_npc.cpp:340: warning: unused variable 'q'
shop.cpp: In member function 'virtual long long int CShop::Buy(CHARACTER*, BYTE)':
shop.cpp:303: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long long int'
shop.cpp:303: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long long int'
shop.cpp: In member function 'void CShop::SetPrivShopItems(std::vector<TShopItemTable*, std::allocator<TShopItemTable*> >)':
shop.cpp:546: warning: comparison is always false due to limited range of data type
../../../Extern/include/cryptopp/algparam.h: In constructor 'CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&,                                                                                                             bool) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]':
../../../Extern/include/cryptopp/filters.h:793:   instantiated from here
../../../Extern/include/cryptopp/algparam.h:26: warning: unused variable 'cryptopp_assert_26'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6369: warning: 'pBuff' may be used uninitialized in this function
group_text_parse_tree.h: In constructor 'CGroupTextParseTreeLoader::CGroupTextParseTreeLoader()':
group_text_parse_tree.h:93: warning: 'CGroupTextParseTreeLoader::m_dwcurLineIndex' will be initialized after
group_text_parse_tree.h:91: warning:   'CGroupNode* CGroupTextParseTreeLoader::m_pRootGroupNode'
group_text_parse_tree.cpp:5: warning:   when initialized here
../../../Extern/include/cryptopp/algparam.h: In member function 'void CryptoPP::AlgorithmParametersTemplate<T>::MoveInto(void*) c                                                                                                            onst [with T = CryptoPP::RandomNumberGenerator*]':
cipher.cpp:397:   instantiated from here
../../../Extern/include/cryptopp/algparam.h:322: warning: unused variable 'p'
buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)':
buff_on_attributes.cpp:113: warning: unused variable 'old_value'
buff_on_attributes.cpp:114: warning: unused variable 'new_value'
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
DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)':
DragonSoul.cpp:350: warning: unused variable 'sum'
DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)':
DragonSoul.cpp:435: warning: unused variable 'dwVnum'
DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])':
DragonSoul.cpp:555: warning: unused variable 'prob_sum'
DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])':
DragonSoul.cpp:763: warning: unused variable 'sum'
item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)':
item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup'
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
item_manager_read_tables.cpp:627: warning: 'pkGroup' may be used uninitialized in this function
../../../Extern/include/cryptopp/misc.h: At global scope:
../../../Extern/include/cryptopp/misc.h:548: warning: 'std::string CryptoPP::StringNarrow(const wchar_t*, bool)' defined but not                                                                                                             used
cmd_general.cpp: In function 'void do_shop_delete(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1769: warning: 'id' may be used uninitialized in this function
cmd_general.cpp:1786: warning: 'id' may be used uninitialized in this function
cmd_general.cpp: In function 'void do_shop_yang(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1359: warning: 'gold' may be used uninitialized in this function
cmd_general.cpp: In function 'bool GetGift(CHARACTER*, DWORD, bool)':
cmd_general.cpp:1060: 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:1175: warning: 'id' may be used uninitialized in this function
cmd_general.cpp: In function 'void do_shop_update_item(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1406: warning: 'shop_id' may be used uninitialized in this function
cmd_general.cpp:1420: warning: 'item_id' may be used uninitialized in this function
cmd_general.cpp:1422: warning: 'price' may be used uninitialized in this function
cmd_general.cpp:1438: warning: 'item_id' may be used uninitialized in this function
cmd_general.cpp:1515: warning: 'display_pos' may be used uninitialized in this function
cmd_general.cpp:1520: warning: 'pos' may be used uninitialized in this function
cmd_general.cpp:1525: warning: 'window_type' may be used uninitialized in this function
cmd_general.cpp:1530: warning: 'price' may be used uninitialized in this function
char.cpp: In member function 'void CHARACTER::DeleteMyShop()':
char.cpp:2618: warning: 'gold' may be used uninitialized in this function
char.cpp: In member function 'void CHARACTER::UpdateShopItems()':
char.cpp:2384: warning: 'val' may be used uninitialized in this function
char.cpp:2383: warning: 'attr' may be used uninitialized in this function
char.cpp:2377: warning: 'soc' may be used uninitialized in this function
char.cpp:2343: warning: 'id' may be used uninitialized in this function
char.cpp: In member function 'void CHARACTER::OpenShop(DWORD, const char*, bool)':
char.cpp:2562: warning: 'val' may be used uninitialized in this function
char.cpp:2555: warning: 'soc' may be used uninitialized in this function
char.cpp:2561: warning: 'attr' may be used uninitialized in this function
char.cpp:2523: warning: 'id' may be used uninitialized in this function
*Resursă folosită: -
*ServerFiles utilizat: Cartof
*Syserr: -
*Detalii suplimentare: Stiu ca warningul nu afecteaza serverul, dar vreau sa repar cat mai multe. Dca stiti rezolvarea macar pt 1 waring va rog
Avatar utilizator
Athero
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 3936
Membru din: 17 Aug 2017, 00:08
Aprecieri: 559  
Mulţumiri: 7142  
Discord: Copiază ID
Medalii

Dute la fiecare linie un zice ca e problema , iti ia ceva ca sa rezolvi toate warningurile alea.
//retras
Afișează semnătura
Avatar utilizator
Asky
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1472
Membru din: 08 Oct 2014, 17:32
Regat: Chunjo
Aprecieri: 98  
Mulţumiri: 4811  
Discord: Copiază ID
 Contact:
Medalii

Subiect Arhivat! Autorul nu a mai dat nici un semn de viata mai mult de 3 zile !
Imagine
Afișează semnătura
Închis
Răspunsuri
2
Vizualizări
327
Răspunsuri
17
Vizualizări
2502
Răspunsuri
2
Vizualizări
60
Răspunsuri
2
Vizualizări
206

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie