Core: Remove "may be used uninitialized in this function", "unused parameter ‘xxx’" and "'xxx' defined but not used" warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-21 23:08:54 +02:00
parent a136403dee
commit 572f7bbd1d
20 changed files with 37 additions and 31 deletions
@@ -72,7 +72,7 @@ char * command_finder(const char* text, int state)
return ((char*)NULL);
}
char ** cli_completion(const char * text, int start, int end)
char ** cli_completion(const char * text, int start, int /*end*/)
{
char ** matches;
matches = (char**)NULL;
@@ -85,7 +85,7 @@ char ** cli_completion(const char * text, int start, int end)
}
#endif
void utf8print(void* arg, const char* str)
void utf8print(void* /*arg*/, const char* str)
{
#if PLATFORM == PLATFORM_WINDOWS
wchar_t wtemp_buf[6000];
@@ -106,7 +106,7 @@ void utf8print(void* arg, const char* str)
#endif
}
void commandFinished(void*, bool sucess)
void commandFinished(void*, bool /*success*/)
{
printf("TC> ");
fflush(stdout);
@@ -226,7 +226,7 @@ void RASocket::zprint(void* callbackArg, const char * szText )
send(((RASocket*)callbackArg)->GetSocket(), szText, sz, 0);
}
void RASocket::commandFinished(void* callbackArg, bool success)
void RASocket::commandFinished(void* callbackArg, bool /*success*/)
{
RASocket* raSocket = (RASocket*)callbackArg;
raSocket->Sendf("TC>");