diff options
Diffstat (limited to 'src/span.cpp')
-rw-r--r-- | src/span.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/span.cpp b/src/span.cpp index 34f2637e..7e3968d1 100644 --- a/src/span.cpp +++ b/src/span.cpp @@ -22,7 +22,7 @@ Span::Span(const Position& pos): } Span::Span(): outer_span(), - filename("")/*, + filename(""), start_line(0), start_ofs(0), end_line(0), end_ofs(0) // */ { @@ -66,10 +66,10 @@ void Span::error(ErrorType tag, ::std::function<void(::std::ostream&)> msg) cons #endif } void Span::warning(WarningType tag, ::std::function<void(::std::ostream&)> msg) const { - print_span_message(*this, [&](auto& os){os << "warning" << tag;}, msg); + print_span_message(*this, [&](auto& os){os << "warn:" << tag;}, msg); } void Span::note(::std::function<void(::std::ostream&)> msg) const { - print_span_message(*this, [](auto& os){os << "note";}, msg); + print_span_message(*this, [](auto& os){os << "note:";}, msg); } ::std::ostream& operator<<(::std::ostream& os, const Span& sp) |