Core: Fixed more warnings (C6246: Local declaration of 'x' hides declaration of the same name in outer scope.)
This commit is contained in:
1 parent
44693cfa99
commit
638693e78f
16 files changed
+120
-133
No files matched your search
@@ -556,10 +556,10 @@ void Log::outSQLDriver(const char* str, ...)
|
||||
{
|
||||
outTimestamp(sqlLogFile);
|
||||
|
||||
va_list ap;
|
||||
va_start(ap, str);
|
||||
vfprintf(sqlLogFile, str, ap);
|
||||
va_end(ap);
|
||||
va_list apSQL;
|
||||
va_start(apSQL, str);
|
||||
vfprintf(sqlLogFile, str, apSQL);
|
||||
va_end(apSQL);
|
||||
|
||||
fprintf(sqlLogFile, "\n");
|
||||
fflush(sqlLogFile);
|
||||
@@ -646,11 +646,11 @@ void Log::outBasic(const char * str, ...)
|
||||
if (logfile)
|
||||
{
|
||||
outTimestamp(logfile);
|
||||
va_list ap;
|
||||
va_start(ap, str);
|
||||
vfprintf(logfile, str, ap);
|
||||
va_list ap2;
|
||||
va_start(ap2, str);
|
||||
vfprintf(logfile, str, ap2);
|
||||
fprintf(logfile, "\n" );
|
||||
va_end(ap);
|
||||
va_end(ap2);
|
||||
fflush(logfile);
|
||||
}
|
||||
}
|
||||
@@ -690,10 +690,10 @@ void Log::outDetail(const char * str, ...)
|
||||
if (logfile)
|
||||
{
|
||||
outTimestamp(logfile);
|
||||
va_list ap;
|
||||
va_start(ap, str);
|
||||
vfprintf(logfile, str, ap);
|
||||
va_end(ap);
|
||||
va_list ap2;
|
||||
va_start(ap2, str);
|
||||
vfprintf(logfile, str, ap2);
|
||||
va_end(ap2);
|
||||
|
||||
fprintf(logfile, "\n");
|
||||
fflush(logfile);
|
||||
@@ -720,10 +720,10 @@ void Log::outDebugInLine(const char * str, ...)
|
||||
|
||||
if (logfile)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, str);
|
||||
vfprintf(logfile, str, ap);
|
||||
va_end(ap);
|
||||
va_list ap2;
|
||||
va_start(ap2, str);
|
||||
vfprintf(logfile, str, ap2);
|
||||
va_end(ap2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -742,10 +742,10 @@ void Log::outSQLDev(const char* str, ...)
|
||||
|
||||
if (sqlDevLogFile)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, str);
|
||||
vfprintf(sqlDevLogFile, str, ap);
|
||||
va_end(ap);
|
||||
va_list ap2;
|
||||
va_start(ap2, str);
|
||||
vfprintf(sqlDevLogFile, str, ap2);
|
||||
va_end(ap2);
|
||||
|
||||
fprintf(sqlDevLogFile, "\n");
|
||||
fflush(sqlDevLogFile);
|
||||
@@ -790,10 +790,10 @@ void Log::outDebug(DebugLogFilters f, const char * str, ...)
|
||||
if (logfile)
|
||||
{
|
||||
outTimestamp(logfile);
|
||||
va_list ap;
|
||||
va_start(ap, str);
|
||||
vfprintf(logfile, str, ap);
|
||||
va_end(ap);
|
||||
va_list ap2;
|
||||
va_start(ap2, str);
|
||||
vfprintf(logfile, str, ap2);
|
||||
va_end(ap2);
|
||||
|
||||
fprintf(logfile, "\n" );
|
||||
fflush(logfile);
|
||||
@@ -835,10 +835,10 @@ void Log::outStaticDebug(const char * str, ...)
|
||||
if (logfile)
|
||||
{
|
||||
outTimestamp(logfile);
|
||||
va_list ap;
|
||||
va_start(ap, str);
|
||||
vfprintf(logfile, str, ap);
|
||||
va_end(ap);
|
||||
va_list ap2;
|
||||
va_start(ap2, str);
|
||||
vfprintf(logfile, str, ap2);
|
||||
va_end(ap2);
|
||||
|
||||
fprintf(logfile, "\n" );
|
||||
fflush(logfile);
|
||||
@@ -900,11 +900,11 @@ void Log::outCommand(uint32 account, const char * str, ...)
|
||||
if (logfile)
|
||||
{
|
||||
outTimestamp(logfile);
|
||||
va_list ap;
|
||||
va_start(ap, str);
|
||||
vfprintf(logfile, str, ap);
|
||||
va_list ap2;
|
||||
va_start(ap2, str);
|
||||
vfprintf(logfile, str, ap2);
|
||||
fprintf(logfile, "\n" );
|
||||
va_end(ap);
|
||||
va_end(ap2);
|
||||
fflush(logfile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user