mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
Enabling -Wunused-exception-parameter [#CLICKHOUSE-2]
This commit is contained in:
parent
c0202bfbc9
commit
44e848856e
@ -914,11 +914,11 @@ void ZooKeeper::connect(
|
|||||||
connected = true;
|
connected = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
catch (const Poco::Net::NetException & e)
|
catch (const Poco::Net::NetException &)
|
||||||
{
|
{
|
||||||
fail_reasons << "\n" << getCurrentExceptionMessage(false) << ", " << address.toString();
|
fail_reasons << "\n" << getCurrentExceptionMessage(false) << ", " << address.toString();
|
||||||
}
|
}
|
||||||
catch (const Poco::TimeoutException & e)
|
catch (const Poco::TimeoutException &)
|
||||||
{
|
{
|
||||||
fail_reasons << "\n" << getCurrentExceptionMessage(false);
|
fail_reasons << "\n" << getCurrentExceptionMessage(false);
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ try
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
catch (const Exception & e)
|
catch (const Exception &)
|
||||||
{
|
{
|
||||||
std::cerr << getCurrentExceptionMessage(true) << std::endl;
|
std::cerr << getCurrentExceptionMessage(true) << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -508,7 +508,7 @@ bool ParserStringLiteral::parseImpl(Pos & pos, ASTPtr & node, Expected & expecte
|
|||||||
{
|
{
|
||||||
readQuotedStringWithSQLStyle(s, in);
|
readQuotedStringWithSQLStyle(s, in);
|
||||||
}
|
}
|
||||||
catch (const Exception & e)
|
catch (const Exception &)
|
||||||
{
|
{
|
||||||
expected.add(pos, "string literal");
|
expected.add(pos, "string literal");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user