I receive this warning when compiling my program.
In member function 'bool CClientManager::InitializeMobTable()':
warning: variable 'isNameFile' set but not used [-Wunused-but-set-variable]
bool isNameFile = true;
^
Here is the relevant part of my code
bool CClientManager::InitializeMobTable()
{
map<int,const char*> localMap;
bool isNameFile = true;
cCsvTable nameData;
if(!nameData.Load("mob_names.txt",'\t'))
{
fprintf(stderr, "mob_names.txt 파일을 읽어오지 못했습니다\n");
isNameFile = false;
} else {
nameData.Next();
while(nameData.Next()) {
localMap[atoi(nameData.AsStringByIndex(0))] = nameData.AsStringByIndex(1);
}
}
// More ...
}
I put the rest on pastebin because is too big: http://pastebin.com/HrVLimgn
The warninig is on 170 Line in that file on pastebin.
My question is, how can I fix? If you comment these lines with a bit affects my program?