mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fix a bug where ::warning() was called with a va_list argument instead of an
actual vararg list. Also cleaned up the format for warnings. (Previously some would start with "warning - warning - Warning:" which was a bit redundant)
This commit is contained in:
@@ -71,13 +71,11 @@ namespace Logger
|
||||
{
|
||||
return _enabled;
|
||||
}
|
||||
void attention(const Loc& loc, const char* fmt,...)
|
||||
void attention(Loc loc, const char* fmt,...)
|
||||
{
|
||||
printf("Warning: %s: ", loc.toChars());
|
||||
va_list va;
|
||||
va_start(va,fmt);
|
||||
vprintf(fmt,va);
|
||||
vwarning(loc,fmt,va);
|
||||
va_end(va);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user