mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-01 20:52:05 -04:00
Removed some more compiler warnings from Windows compile (GCC 4.4).
Added -Wextra to the Windows compile. Added new define in libbitdht for snprintf and fprintf to proper handling of "%ll" under Windows. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4951 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2d2b7230d1
commit
970d88200d
35 changed files with 170 additions and 125 deletions
|
@ -329,10 +329,10 @@ bool p3ConfigMgr::backedUpFileSave(const std::string& fname, const std::string&
|
|||
return true;
|
||||
}
|
||||
|
||||
if(size_file != fwrite(config_buff,1, size_file, file))
|
||||
if(size_file != (int) fwrite(config_buff,1, size_file, file))
|
||||
getPqiNotify()->AddSysMessage(0, RS_SYS_WARNING, "Write error", "Error while writing backup configuration file " + fname_backup + "\nIs your disc full or out of quota ?");
|
||||
|
||||
if(size_sign != fwrite(sign_buff, 1, size_sign, sign))
|
||||
if(size_sign != (int) fwrite(sign_buff, 1, size_sign, sign))
|
||||
getPqiNotify()->AddSysMessage(0, RS_SYS_WARNING, "Write error", "Error while writing main signature file " + sign_fname_backup + "\nIs your disc full or out of quota ?");
|
||||
|
||||
fclose(file);
|
||||
|
@ -1124,7 +1124,7 @@ bool p3Config::backedUpFileSave(const std::string& cfg_fname, const std::string&
|
|||
#endif
|
||||
}
|
||||
|
||||
if(size_file != fwrite(buff, 1, size_file, cfg_file))
|
||||
if(size_file != (int) fwrite(buff, 1, size_file, cfg_file))
|
||||
{
|
||||
getPqiNotify()->AddSysMessage(0, RS_SYS_WARNING, "Write error", "Error while writing backup configuration file " + cfg_fname_backup + "\nIs your disc full or out of quota ?");
|
||||
fclose(cfg_file);
|
||||
|
|
|
@ -270,7 +270,7 @@ bool p3PeerMgrIMPL::getGpgId(const std::string &ssl_id, std::string &gpgId)
|
|||
}
|
||||
|
||||
// Placeholder until we implement this functionality.
|
||||
uint32_t p3PeerMgrIMPL::getConnectionType(const std::string &sslId)
|
||||
uint32_t p3PeerMgrIMPL::getConnectionType(const std::string &/*sslId*/)
|
||||
{
|
||||
return RS_NET_CONN_TYPE_FRIEND;
|
||||
}
|
||||
|
|
|
@ -351,7 +351,7 @@ int pqiarchive::writePkt(RsItem *pqi)
|
|||
out << "Writing Pkt Body" << std::endl;
|
||||
|
||||
// write packet.
|
||||
if (len != bio->senddata(ptr, len))
|
||||
if ((int) len != bio->senddata(ptr, len))
|
||||
{
|
||||
out << "Problems with Send Data!";
|
||||
out << std::endl;
|
||||
|
|
|
@ -294,7 +294,7 @@ int pqistore::writePkt(RsItem *pqi)
|
|||
out << "Writing Pkt Body" << std::endl;
|
||||
#endif
|
||||
// write packet.
|
||||
if (len != bio->senddata(ptr, len))
|
||||
if (len != (uint32_t) bio->senddata(ptr, len))
|
||||
{
|
||||
#ifdef PQISTORE_DEBUG
|
||||
out << "Problems with Send Data!";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue