mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
second pass over compilation warnings
This commit is contained in:
parent
927f782bef
commit
f55b283887
17 changed files with 28 additions and 28 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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] = '.';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue