This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/main by this push:
new 0434f44f3 [AVRO-4083]: Remove unused variable (#3219)
0434f44f3 is described below
commit 0434f44f3ec1c4942b092fcf57816975c73d38da
Author: glywk <[email protected]>
AuthorDate: Fri Oct 25 09:37:39 2024 +0200
[AVRO-4083]: Remove unused variable (#3219)
Co-authored-by: blissful <[email protected]>
---
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 797e8b381..f1e2dfd96 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<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);
@@ -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.
}