From 0434f44f3ec1c4942b092fcf57816975c73d38da Mon Sep 17 00:00:00 2001 From: glywk Date: Fri, 25 Oct 2024 09:37:39 +0200 Subject: [PATCH] [AVRO-4083]: Remove unused variable (#3219) Co-authored-by: blissful --- lang/c++/impl/Compiler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/c++/impl/Compiler.cc b/lang/c++/impl/Compiler.cc index 797e8b3813d..f1e2dfd96a5 100644 --- a/lang/c++/impl/Compiler.cc +++ b/lang/c++/impl/Compiler.cc @@ -350,7 +350,7 @@ static LogicalType makeLogicalType(const Entity &e, const Object &m) { if (containsField(m, "scale")) { decimalType.setScale(static_cast(getLongField(e, m, "scale"))); } - } catch (Exception &ex) { + } catch (const Exception &) { // If any part of the logical type is malformed, per the standard we // must ignore the whole attribute. return LogicalType(LogicalType::NONE); @@ -508,7 +508,7 @@ static NodePtr makeNode(const Entity &e, const Object &m, if (result) { try { result->setLogicalType(makeLogicalType(e, m)); - } catch (Exception &ex) { + } catch (const Exception &) { // Per the standard we must ignore the logical type attribute if it // is malformed. }