Skip to content

Commit

Permalink
[AVRO-4083]: Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
blissful committed Oct 24, 2024
1 parent cc563e0 commit 82d6083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/c++/impl/Compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static LogicalType makeLogicalType(const Entity &e, const Object &m) {
if (containsField(m, "scale")) {
decimalType.setScale(static_cast<int32_t>(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);
Expand Down Expand Up @@ -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.
}
Expand Down

0 comments on commit 82d6083

Please sign in to comment.