most of the serious unused vars are removed, so i'll silence those now... and maaaaaany other fixes

This commit is contained in:
DarthArgus
2015-10-13 16:51:54 -05:00
parent 25b0b97bf0
commit d74de9fdcd
14 changed files with 13 additions and 129 deletions
@@ -44,13 +44,7 @@ std::string soegethostname()
char res[NAME_SIZE];
memset(res, 0, NAME_SIZE);
std::string retVal;
int error = gethostname(res, NAME_SIZE-1);
int errdetail;
if(error !=0)
{
errdetail = errno;
}
retVal = res;
return retVal;
}
@@ -77,7 +77,7 @@ template<typename T, typename P> PriorityQueue<T, P>::PriorityQueue(int queueSiz
mQueueEnd = 0;
mQueueSize = queueSize;
mQueue = new QueueEntry[mQueueSize];
memset(mQueue, 0, sizeof(mQueue));
memset(mQueue, 0, mQueueSize);
}
template<typename T, typename P> PriorityQueue<T, P>::~PriorityQueue()
@@ -264,7 +264,7 @@ namespace soe
{
int wchar_length=0; //number of utf-8 characters
int code_size; //number of bytes each wchar
int cur_bytes_count = 0;
unsigned cur_bytes_count = 0;
unsigned char byte;
char *pout = output;