From 2706846f43b8a274098a8a4564bddeba06059bb6 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 30 Sep 2015 14:03:30 +0200 Subject: -added warning case to cl compiler -modified warning msg --- solc/CommandLineInterface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'solc') diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index a1f5fd66..e3c7620e 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -494,7 +494,11 @@ bool CommandLineInterface::processInput() if (!m_compiler->compile(optimize, runs)) { for (auto const& error: m_compiler->errors()) - SourceReferenceFormatter::printExceptionInformation(cerr, *error, "Error", *m_compiler); + SourceReferenceFormatter::printExceptionInformation( + cerr, + *error, + (dynamic_pointer_cast(error)) ? "Warning" : "Error", *m_compiler + ); return false; } m_compiler->link(m_libraries); -- cgit