1
0
forked from mirrors/0ad

large batch of Dehydra static code analysis fixes

(mostly passing arguments by const reference and checking LibError
return codes)

This was SVN commit r6214.
This commit is contained in:
janwas
2008-07-12 10:45:11 +00:00
parent 088f3b54be
commit 3c411dd174
41 changed files with 134 additions and 144 deletions
+3 -3
View File
@@ -17,8 +17,6 @@
// DECLARATIONS
#pragma warning( disable : 4100 )
CNetServer* g_NetServer = NULL;
//-----------------------------------------------------------------------------
@@ -97,7 +95,7 @@ void CNetServer::ScriptingInit( void )
// Name: Start()
// Desc: Initialize the server
//-----------------------------------------------------------------------------
bool CNetServer::Start( JSContext* pContext, uintN argc, jsval* argv )
bool CNetServer::Start( JSContext* UNUSED(pContext), uintN UNUSED(argc), jsval* UNUSED(argv) )
{
// Setup initial state
m_State = SERVER_STATE_PREGAME;
@@ -378,7 +376,9 @@ bool CNetServer::OnError( void* pContext, CFsmEvent* pEvent )
if ( pEvent->GetType() != NMT_ERROR ) return true;
CNetServer* pServer = ( CNetServer* )( ( FsmActionCtx* )pContext )->pHost;
UNUSED2(pServer);
CNetSession* pSession = ( ( FsmActionCtx* )pContext )->pSession;
UNUSED2(pSession);
CErrorMessage* pMessage = ( CErrorMessage* )pEvent->GetParamRef();
if ( pMessage )