Skip to content

Commit

Permalink
[AVRO-4083]: Remove unused variable (#3219)
Browse files Browse the repository at this point in the history
Co-authored-by: blissful <[email protected]>
  • Loading branch information
glywk and blissful authored Oct 25, 2024
1 parent cc563e0 commit 0434f44
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 0434f44

Please sign in to comment.