Enabling -Wunused-exception-parameter [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-08-26 04:33:20 +03:00
parent c0202bfbc9
commit 44e848856e
3 changed files with 4 additions and 4 deletions

View File

@ -914,11 +914,11 @@ void ZooKeeper::connect(
connected = true;
break;
}
catch (const Poco::Net::NetException & e)
catch (const Poco::Net::NetException &)
{
fail_reasons << "\n" << getCurrentExceptionMessage(false) << ", " << address.toString();
}
catch (const Poco::TimeoutException & e)
catch (const Poco::TimeoutException &)
{
fail_reasons << "\n" << getCurrentExceptionMessage(false);
}

View File

@ -25,7 +25,7 @@ try
return 0;
}
catch (const Exception & e)
catch (const Exception &)
{
std::cerr << getCurrentExceptionMessage(true) << std::endl;
return 1;

View File

@ -508,7 +508,7 @@ bool ParserStringLiteral::parseImpl(Pos & pos, ASTPtr & node, Expected & expecte
{
readQuotedStringWithSQLStyle(s, in);
}
catch (const Exception & e)
catch (const Exception &)
{
expected.add(pos, "string literal");
return false;