From 44e848856ea977ce370147f9bdf3bc84e8b50d03 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 26 Aug 2018 04:33:20 +0300 Subject: [PATCH] Enabling -Wunused-exception-parameter [#CLICKHOUSE-2] --- dbms/src/Common/ZooKeeper/ZooKeeperImpl.cpp | 4 ++-- dbms/src/IO/tests/parse_date_time_best_effort.cpp | 2 +- dbms/src/Parsers/ExpressionElementParsers.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dbms/src/Common/ZooKeeper/ZooKeeperImpl.cpp b/dbms/src/Common/ZooKeeper/ZooKeeperImpl.cpp index f9eb7fb9870..1a9c411659f 100644 --- a/dbms/src/Common/ZooKeeper/ZooKeeperImpl.cpp +++ b/dbms/src/Common/ZooKeeper/ZooKeeperImpl.cpp @@ -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); } diff --git a/dbms/src/IO/tests/parse_date_time_best_effort.cpp b/dbms/src/IO/tests/parse_date_time_best_effort.cpp index 449a2907df9..fc5755f1f95 100644 --- a/dbms/src/IO/tests/parse_date_time_best_effort.cpp +++ b/dbms/src/IO/tests/parse_date_time_best_effort.cpp @@ -25,7 +25,7 @@ try return 0; } -catch (const Exception & e) +catch (const Exception &) { std::cerr << getCurrentExceptionMessage(true) << std::endl; return 1; diff --git a/dbms/src/Parsers/ExpressionElementParsers.cpp b/dbms/src/Parsers/ExpressionElementParsers.cpp index 7595d3044c9..41a6623de3c 100644 --- a/dbms/src/Parsers/ExpressionElementParsers.cpp +++ b/dbms/src/Parsers/ExpressionElementParsers.cpp @@ -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;