[12125] Fix some warnings

* Fix compiler warnings "warning: no newline at end of file" (Linux/GCC).
* Fix compiler warnings "warning: '<class>::<member>' will be initialized after <class>::<member>" (Linux/GCC).
* Fix compiler warnings "warning: unused parameter '<param>'" (Linux/GCC).
* Fix a signed/unsigned warning

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
evil-at-wow 2012-08-25 15:37:16 +02:00 committed by Antz
parent 02ce53b7dd
commit 6fa6eb24a5
19 changed files with 50 additions and 36 deletions

View file

@ -403,7 +403,7 @@ void MySqlPreparedStatement::bind(const SqlStmtParameters& holder)
return;
}
int nIndex = 0;
unsigned int nIndex = 0;
SqlStmtParameters::ParameterContainer const& _args = holder.params();
SqlStmtParameters::ParameterContainer::const_iterator iter_last = _args.end();
@ -421,7 +421,7 @@ void MySqlPreparedStatement::bind(const SqlStmtParameters& holder)
}
}
void MySqlPreparedStatement::addParam(int nIndex, const SqlStmtFieldData& data)
void MySqlPreparedStatement::addParam(unsigned int nIndex, const SqlStmtFieldData& data)
{
MANGOS_ASSERT(m_pInputArgs);
MANGOS_ASSERT(nIndex < m_nParams);