Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1123:165a920f4e88 | 1124:e7f0c2b48047 |
---|---|
712 | 712 |
713 void Type::warning(Loc loc, const char *format, ...) | 713 void Type::warning(Loc loc, const char *format, ...) |
714 { | 714 { |
715 if (global.params.warnings && !global.gag) | 715 if (global.params.warnings && !global.gag) |
716 { | 716 { |
717 fprintf(stdmsg, "warning - "); | |
718 va_list ap; | 717 va_list ap; |
719 va_start(ap, format); | 718 va_start(ap, format); |
720 ::verror(loc, format, ap); | 719 ::vwarning(loc, format, ap); |
721 va_end( ap ); | 720 va_end( ap ); |
722 } | 721 } |
723 } | 722 } |
724 | 723 |
725 Identifier *Type::getTypeInfoIdent(int internal) | 724 Identifier *Type::getTypeInfoIdent(int internal) |