Mercurial > projects > ldc
diff dmd/expression.c @ 1124:e7f0c2b48047
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)
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 18 Mar 2009 15:03:17 +0100 |
parents | 0d38fa5a0b46 |
children | eeb8b95ea92e |
line wrap: on
line diff
--- a/dmd/expression.c Wed Mar 18 00:25:36 2009 +0100 +++ b/dmd/expression.c Wed Mar 18 15:03:17 2009 +0100 @@ -963,10 +963,9 @@ { if (global.params.warnings && !global.gag) { - fprintf(stdmsg, "warning - "); va_list ap; va_start(ap, format); - ::warning(loc, format, ap); + ::vwarning(loc, format, ap); va_end( ap ); } }