Skip to content

Commit 0434f44

Browse files
glywkblissful
and
blissful
authored
[AVRO-4083]: Remove unused variable (#3219)
Co-authored-by: blissful <[email protected]>
1 parent cc563e0 commit 0434f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lang/c++/impl/Compiler.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static LogicalType makeLogicalType(const Entity &e, const Object &m) {
350350
if (containsField(m, "scale")) {
351351
decimalType.setScale(static_cast<int32_t>(getLongField(e, m, "scale")));
352352
}
353-
} catch (Exception &ex) {
353+
} catch (const Exception &) {
354354
// If any part of the logical type is malformed, per the standard we
355355
// must ignore the whole attribute.
356356
return LogicalType(LogicalType::NONE);
@@ -508,7 +508,7 @@ static NodePtr makeNode(const Entity &e, const Object &m,
508508
if (result) {
509509
try {
510510
result->setLogicalType(makeLogicalType(e, m));
511-
} catch (Exception &ex) {
511+
} catch (const Exception &) {
512512
// Per the standard we must ignore the logical type attribute if it
513513
// is malformed.
514514
}

0 commit comments

Comments
 (0)