Mercurial > projects > ldc
diff dmd/mtype.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 | b30fe7e1dbb9 |
children | eeb8b95ea92e |
line wrap: on
line diff
--- a/dmd/mtype.c Wed Mar 18 00:25:36 2009 +0100 +++ b/dmd/mtype.c Wed Mar 18 15:03:17 2009 +0100 @@ -714,10 +714,9 @@ { if (global.params.warnings && !global.gag) { - fprintf(stdmsg, "warning - "); va_list ap; va_start(ap, format); - ::verror(loc, format, ap); + ::vwarning(loc, format, ap); va_end( ap ); } }