second pass over compilation warnings

This commit is contained in:
csoler 2016-06-05 11:05:52 -04:00
parent 927f782bef
commit f55b283887
17 changed files with 28 additions and 28 deletions

View file

@ -316,7 +316,7 @@ std::string ApiServer::handleRequest(Request &request)
task = mRouter.handleRequest(request, resp);
}
time_t start = time(NULL);
//time_t start = time(NULL);
bool morework = true;
while(task && morework)
{

View file

@ -424,7 +424,7 @@ static void sendMessage(MHD_Connection *connection, unsigned int status, std::st
static std::string escape_html(std::string in)
{
std::string out;
for(int i = 0; i < in.size(); i++)
for(uint32_t i = 0; i < in.size(); i++)
{
char a = (in[i]&0xF0)>>4;
a = a < 10? a+'0': a-10+'A';

View file

@ -72,7 +72,7 @@ PeersHandler::~PeersHandler()
mStateTokenServer->unregisterTickClient(this);
}
void PeersHandler::notifyListChange(int list, int type)
void PeersHandler::notifyListChange(int list, int /* type */)
{
RsStackMutex stack(mMtx); /********** STACK LOCKED MTX ******/
if(list == NOTIFY_LIST_FRIENDS)

View file

@ -525,7 +525,7 @@ std::string SerializeValue(const Value& v)
// json expets decimal points, so replace all commas with decimal points
if(v.GetType() == FloatVal || v.GetType() == DoubleVal)
{
for(int i = 0; i < str.size(); i++)
for(unsigned int i = 0; i < str.size(); i++)
if(str[i] == ',')
str[i] = '.';
}