mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[9107] Fix most of the gcc warnings
* use UI64FMTD instead of "%u" for uint64 output * on most *NIX systems, I64FMT is "%016lX" and not "%016llX" * also fix typo: renamed GridMap::loadHeihgtData to GridMap::loadHeightData Note: there are still many warnings from the 3rd party libraries g3dlite and ACE. Those warnings won't be fixed with that commit. Also, a few warnings from MaNGOS are left, they'll be fixed later. Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
This commit is contained in:
parent
e568293d2c
commit
ebb063beb9
14 changed files with 53 additions and 48 deletions
|
|
@ -95,13 +95,13 @@ bool SqlQueryHolder::SetQuery(size_t index, const char *sql)
|
|||
{
|
||||
if(m_queries.size() <= index)
|
||||
{
|
||||
sLog.outError("Query index (%u) out of range (size: %u) for query: %s",index,(uint32)m_queries.size(),sql);
|
||||
sLog.outError("Query index (" SIZEFMTD ") out of range (size: " SIZEFMTD ") for query: %s",index,(uint32)m_queries.size(),sql);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(m_queries[index].first != NULL)
|
||||
{
|
||||
sLog.outError("Attempt assign query to holder index (%u) where other query stored (Old: [%s] New: [%s])",
|
||||
sLog.outError("Attempt assign query to holder index (" SIZEFMTD ") where other query stored (Old: [%s] New: [%s])",
|
||||
index,m_queries[index].first,sql);
|
||||
return false;
|
||||
}
|
||||
|
|
@ -115,7 +115,7 @@ bool SqlQueryHolder::SetPQuery(size_t index, const char *format, ...)
|
|||
{
|
||||
if(!format)
|
||||
{
|
||||
sLog.outError("Query (index: %u) is empty.",index);
|
||||
sLog.outError("Query (index: " SIZEFMTD ") is empty.",index);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue