- Mesaj
- 52
- Çözümler
- 3
- Beğeni
- 9
- Puan
- 424
- Ticaret Puanı
- 0
Arkadaşlar bir files indirdim ve onun üstünde çalışmalar yapıyorum fakat şöyle bir hata ile karşılaıyorum db'yi build ederken. Ayrıca 0'dan db'yi attığımda da bu tür hatalar alıyorum:
Kod:
In file included from Main.cpp:6:0:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:33:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return dwGuildID[0] < r.dwGuildID[0] || dwGuildID[0] == r.dwGuildID[0] && dwGuildID[1] < r.d wGuildID[1];
^
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartIn fo&) const':
GuildManager.h:62:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return GID[0] < r.GID[0] || GID[0] == r.GID[0] && GID[1] < r.GID[1];
^
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:100:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return a.GID < b.GID || a.GID == b.GID && a.dwSkillVnum < b.dwSkillVnum;
^
[BEST Production] [DB] Source Derleniyor: ClientManagerEventFlag.cpp
[BEST Production] [DB] Source Derleniyor: Marriage.cpp
[BEST Production] [DB] Source Derleniyor: Monarch.cpp
[BEST Production] [DB] Source Derleniyor: BlockCountry.cpp
[BEST Production] [DB] Source Derleniyor: ItemIDRangeManager.cpp
In file included from GuildManager.cpp:2:0:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:33:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return dwGuildID[0] < r.dwGuildID[0] || dwGuildID[0] == r.dwGuildID[0] && dwGuildID[1] < r.d wGuildID[1];
^
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartIn fo&) const':
GuildManager.h:62:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return GID[0] < r.GID[0] || GID[0] == r.GID[0] && GID[1] < r.GID[1];
^
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:100:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return a.GID < b.GID || a.GID == b.GID && a.dwSkillVnum < b.dwSkillVnum;
^
In file included from ClientManager.cpp:16:0:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:33:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return dwGuildID[0] < r.dwGuildID[0] || dwGuildID[0] == r.dwGuildID[0] && dwGuildID[1] < r.d wGuildID[1];
^
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartIn fo&) const':
GuildManager.h:62:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return GID[0] < r.GID[0] || GID[0] == r.GID[0] && GID[1] < r.GID[1];
^
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:100:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return a.GID < b.GID || a.GID == b.GID && a.dwSkillVnum < b.dwSkillVnum;
^
[BEST Production] [DB] Source Derleniyor: ClientManagerHorseName.cpp
[BEST Production] [DB] Source Derleniyor: ProtoReader.cpp
ClientManagerLogin.cpp: In member function 'void CClientManager::RESULT_LOGIN_BY_KEY(CPeer*, SQ LMsg*)':
ClientManagerLogin.cpp:228:48: error: qualified-id in declaration before '(' token
void CClientManager::RESULT_PLAYER_INDEX_CREATE(CPeer * pkPeer, SQLMsg * msg)
^
ClientManagerLogin.cpp:228:48: error: invalid use of qualified-name 'CClientManager::RESULT_PLA YER_INDEX_CREATE'
ClientManagerLogin.cpp:228:55: error: expected primary-expression before '*' token
void CClientManager::RESULT_PLAYER_INDEX_CREATE(CPeer * pkPeer, SQLMsg * msg)
^
ClientManagerLogin.cpp:228:57: error: 'pkPeer' was not declared in this scope
void CClientManager::RESULT_PLAYER_INDEX_CREATE(CPeer * pkPeer, SQLMsg * msg)
^
ClientManagerLogin.cpp:228:72: error: expected primary-expression before '*' token
void CClientManager::RESULT_PLAYER_INDEX_CREATE(CPeer * pkPeer, SQLMsg * msg)
^
ClientManagerLogin.cpp:247:2: error: expected initializer before 'char'
char input_pwd[PASSWD_MAX_LEN + 1];
^
ClientManagerLogin.cpp:248:12: error: redeclaration of 'char** row'
MYSQL_ROW row = NULL;
^
ClientManagerLogin.cpp:205:12: error: 'char** row' previously declared here
MYSQL_ROW row = mysql_fetch_row(msg->Get()->pSQLResult);
^
ClientManagerLogin.cpp:249:8: error: conflicting declaration 'DWORD col'
DWORD col;
^
ClientManagerLogin.cpp:207:6: error: 'col' has a previous declaration as 'int col'
int col = 0;
^
ClientManagerLogin.cpp:251:24: error: 'res' was not declared in this scope
row = mysql_fetch_row(res);
^
ClientManagerLogin.cpp:258:10: error: 'input_pwd' was not declared in this scope
strlcpy(input_pwd, row[col++], sizeof(input_pwd));
^
In file included from /usr/local/lib/gcc49/include/c++/cstddef:45:0,
from /usr/local/include/boost/config/select_stdlib_config.hpp:17,
from /usr/local/include/boost/config.hpp:40,
from /usr/local/include/boost/unordered/unordered_map_fwd.hpp:13,
from /usr/local/include/boost/unordered/unordered_map.hpp:16,
from /usr/local/include/boost/unordered_map.hpp:16,
from ClientManager.h:5,
from ClientManagerLogin.cpp:5:
ClientManagerLogin.cpp:273:10: error: return-statement with a value, in function returning 'voi d' [-fpermissive]
return NULL;
^
ClientManagerLogin.cpp:276:9: error: return-statement with a value, in function returning 'void ' [-fpermissive]
return pkTab;
^
ClientManagerLogin.cpp: In member function 'void CClientManager::RESULT_LOGIN(CPeer*, SQLMsg*)' :
ClientManagerLogin.cpp:398:73: error: 'CreateAccountTableFromRes' was not declared in this scop e
info->pAccountTable = CreateAccountTableFromRes(msg->Get()->pSQLResult);
^
ClientManagerLogin.cpp:424:2: error: expected '}' before 'else'
else
^
ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTableTXT()':
ClientManagerBoot.cpp:424:11: warning: statement has no effect [-Wunused-value]
test_data;
^
ClientManagerBoot.cpp:222:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set- variable]
bool isNameFile = true;
^
ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTableTXT()':
ClientManagerBoot.cpp:677:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set- variable]
bool isNameFile = true;
^
ClientManagerBoot.cpp:780:6: warning: unused variable 'testValue' [-Wunused-variable]
int testValue = m_vec_itemTable.size();
^
ClientManager.cpp: In member function 'void CClientManager::MainLoop()':
ClientManager.cpp:234:10: warning: deleting object of polymorphic class type 'CItemPriceListTab leCache' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual -dtor]
delete pCache;
^
[BEST Production] [DB] Source Derleniyor: version.cpp
gmake: *** [.obj/ClientManagerLogin.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from ClientManagerGuild.cpp:8:0:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:33:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return dwGuildID[0] < r.dwGuildID[0] || dwGuildID[0] == r.dwGuildID[0] && dwGuildID[1] < r.d wGuildID[1];
^
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartIn fo&) const':
GuildManager.h:62:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return GID[0] < r.GID[0] || GID[0] == r.GID[0] && GID[1] < r.GID[1];
^
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:100:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return a.GID < b.GID || a.GID == b.GID && a.dwSkillVnum < b.dwSkillVnum;
^
ClientManagerPlayer.cpp: In function 'size_t CreatePlayerSaveQuery(char*, size_t, TPlayerTable* )':
ClientManagerPlayer.cpp:202:3: warning: format '%d' expects argument of type 'int', but argumen t 15 has type 'long int' [-Wformat=]
);
^
ClientManagerPlayer.cpp:202:3: warning: format '%d' expects argument of type 'int', but argumen t 16 has type 'long int' [-Wformat=]
ClientManagerPlayer.cpp:202:3: warning: format '%d' expects argument of type 'int', but argumen t 49 has type 'long int' [-Wformat=]
ClientManagerPlayer.cpp:202:3: warning: format '%d' expects argument of type 'int', but argumen t 15 has type 'long int' [-Wformat=]
ClientManagerPlayer.cpp:202:3: warning: format '%d' expects argument of type 'int', but argumen t 16 has type 'long int' [-Wformat=]
ClientManagerPlayer.cpp:202:3: warning: format '%d' expects argument of type 'int', but argumen t 49 has type 'long int' [-Wformat=]
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, SQLMsg* )':
ClientManager.cpp:727:128: warning: format '%u' expects a matching 'unsigned int' argument [-Wf ormat=]
pItemAward->dwVnum, pItemAward->dwCount, pItemAward->dwSocket0, pItemAward->dwSocket1, pItemAward->dwSocket2, dwSocket3);
^
ClientManager.cpp:727:128: warning: format '%u' expects a matching 'unsigned int' argument [-Wf ormat=]
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_CHANGE_PASSWORD(CPee r*, SQLMsg*)':
ClientManager.cpp:821:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (row[0] && *row[0] && !strcasecmp(row[0], p->login) || (!row[0] || !*row[0]) && !strcmp(" 000000", p->login))
^
ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(char*)':
ClientManagerPlayer.cpp:433:7: warning: address of local variable 'command' returned [-Wreturn- local-addr]
char command[20] = "";
^
ClientManagerPlayer.cpp: In member function 'void CClientManager::__QUERY_PLAYER_CREATE(CPeer*, DWORD, TPlayerCreatePacket*)':
ClientManagerPlayer.cpp:885:32: warning: format '%d' expects argument of type 'int', but argume nt 18 has type 'long int' [-Wformat=]
,packet->player_table.cheque);
^
ClientManagerPlayer.cpp:885:32: warning: format '%d' expects argument of type 'int', but argume nt 19 has type 'long int' [-Wformat=]
ClientManagerPlayer.cpp:885:32: warning: format '%d' expects argument of type 'int', but argume nt 18 has type 'long int' [-Wformat=]
ClientManagerPlayer.cpp:885:32: warning: format '%d' expects argument of type 'int', but argume nt 19 has type 'long int' [-Wformat=]
ClientManagerPlayer.cpp: In member function 'void CClientManager::RESULT_HIGHSCORE_REGISTER(CPe er*, SQLMsg*)':
ClientManagerPlayer.cpp:1270:26: warning: suggest parentheses around '&&' within '||' [-Wparent heses]
if (pi->account_index && current_value >= value || !pi->account_index && current_value <= v alue)
^
ProtoReader.cpp: In function 'std::string* StringSplit(std::string, std::string)':
ProtoReader.cpp:34:54: warning: comparison between signed and unsigned integer expressions [-Ws ign-compare]
while ((cutAt = strOrigin.find_first_of(strTok)) != strOrigin.npos)
^
ProtoReader.cpp: In function 'int get_Item_Type_Value(std::string)':
ProtoReader.cpp:89:16: warning: comparison between signed and unsigned integer expressions [-Ws ign-compare]
for (int j=0;j<sizeof(arType)/sizeof(arType[0]);j++) {
^
In file included from ../../common/singleton.h:4:0,
from stdafx.h:16,
from ProtoReader.cpp:1:
ProtoReader.cpp: In function 'int get_Item_SubType_Value(int, std::string)':
ProtoReader.cpp:197:29: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
assert(_countof(arSubType) > type_value && "Subtype rule: Out of range!!");
^
ProtoReader.cpp:198:26: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
if (_countof(arSubType) <= type_value)
^
ProtoReader.cpp: In function 'int get_Item_AntiFlag_Value(std::string)':
ProtoReader.cpp:230:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for(int i =0;i<sizeof(arAntiFlag)/sizeof(arAntiFlag[0]);i++)
^
ProtoReader.cpp: In function 'int get_Item_Flag_Value(std::string)':
ProtoReader.cpp:260:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for(int i =0;i<sizeof(arFlag)/sizeof(arFlag[0]);i++) {
^
ProtoReader.cpp: In function 'int get_Item_WearFlag_Value(std::string)':
ProtoReader.cpp:308:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for(int i =0;i<sizeof(arWearrFlag)/sizeof(arWearrFlag[0]);i++)
^
ProtoReader.cpp: In function 'int get_Item_Immune_Value(std::string)':
ProtoReader.cpp:335:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for(int i =0;i<sizeof(arImmune)/sizeof(arImmune[0]);i++) {
^
ProtoReader.cpp: In function 'int get_Item_LimitType_Value(std::string)':
ProtoReader.cpp:363:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for (int j=0;j<sizeof(arLimitType)/sizeof(arLimitType[0]);j++) {
^
ProtoReader.cpp: In function 'int get_Item_ApplyType_Value(std::string)':
ProtoReader.cpp:492:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for (int j=0;j<sizeof(arApplyType)/sizeof(arApplyType[0]);j++)
^
ProtoReader.cpp: In function 'int get_Mob_Rank_Value(std::string)':
ProtoReader.cpp:515:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for (int j=0;j<sizeof(arRank)/sizeof(arRank[0]);j++) {
^
ProtoReader.cpp: In function 'int get_Mob_Type_Value(std::string)':
ProtoReader.cpp:537:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for (int j=0;j<sizeof(arType)/sizeof(arType[0]);j++) {
^
ProtoReader.cpp: In function 'int get_Mob_BattleType_Value(std::string)':
ProtoReader.cpp:558:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for (int j=0;j<sizeof(arBattleType)/sizeof(arBattleType[0]);j++) {
^
ProtoReader.cpp: In function 'int get_Mob_Size_Value(std::string)':
ProtoReader.cpp:579:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for (int j=0;j<sizeof(arSize)/sizeof(arSize[0]);j++) {
^
ProtoReader.cpp: In function 'int get_Mob_AIFlag_Value(std::string)':
ProtoReader.cpp:601:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for(int i =0;i<sizeof(arAIFlag)/sizeof(arAIFlag[0]);i++) {
^
ProtoReader.cpp: In function 'int get_Mob_RaceFlag_Value(std::string)':
ProtoReader.cpp:627:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for(int i =0;i<sizeof(arRaceFlag)/sizeof(arRaceFlag[0]);i++) {
^
ProtoReader.cpp: In function 'int get_Mob_ImmuneFlag_Value(std::string)':
ProtoReader.cpp:652:16: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for(int i =0;i<sizeof(arImmuneFlag)/sizeof(arImmuneFlag[0]);i++) {
^
ProtoReader.cpp: In function 'bool Set_Proto_Item_Table(TItemTable*, cCsvTable&, std::map<int, const char*>&)':
ProtoReader.cpp:965:17: warning: comparison between signed and unsigned integer expressions [-W sign-compare]
for (int i=0; i<sizeof(dataArray)/sizeof(dataArray[0]);i++) {
^
ProtoReader.cpp:1032:25: warning: comparison between signed and unsigned integer expressions [- Wsign-compare]
if (std::string::npos == pos)
^
root@turkmmo:/usr/src/best_production_v5_src/Server/db/src #
En son bir moderatör tarafından düzenlenmiş: