Fixed some checker warnings.

This commit is contained in:
chriseth 2015-03-10 15:11:13 +01:00
parent 665edd3f86
commit c7ac1f55b2

View File

@ -345,18 +345,11 @@ bool CommandLineInterface::processInput()
void CommandLineInterface::handleAst(string const& _argStr) void CommandLineInterface::handleAst(string const& _argStr)
{ {
string title; string title;
string suffix;
if (_argStr == g_argAstStr) if (_argStr == g_argAstStr)
{
title = "Syntax trees:"; title = "Syntax trees:";
suffix = ".ast";
}
else if (_argStr == g_argAstJson) else if (_argStr == g_argAstJson)
{
title = "JSON AST:"; title = "JSON AST:";
suffix = ".json";
}
else else
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Illegal argStr for AST")); BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Illegal argStr for AST"));