Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1123:165a920f4e88 | 1124:e7f0c2b48047 |
---|---|
961 | 961 |
962 void Expression::warning(const char *format, ...) | 962 void Expression::warning(const char *format, ...) |
963 { | 963 { |
964 if (global.params.warnings && !global.gag) | 964 if (global.params.warnings && !global.gag) |
965 { | 965 { |
966 fprintf(stdmsg, "warning - "); | |
967 va_list ap; | 966 va_list ap; |
968 va_start(ap, format); | 967 va_start(ap, format); |
969 ::warning(loc, format, ap); | 968 ::vwarning(loc, format, ap); |
970 va_end( ap ); | 969 va_end( ap ); |
971 } | 970 } |
972 } | 971 } |
973 | 972 |
974 void Expression::rvalue() | 973 void Expression::rvalue() |