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 2e8137faeb chore: [C++] remove unused variable (#3601)
2e8137faeb is described below
commit 2e8137faeb7b5fe102db938124f745b5ba4b3b0a
Author: Stephan Lachnit <[email protected]>
AuthorDate: Wed Dec 17 22:55:36 2025 +0100
chore: [C++] remove unused variable (#3601)
Generates a warning when compiling with clang.
---
lang/c++/impl/json/JsonIO.cc | 2 --
1 file changed, 2 deletions(-)
diff --git a/lang/c++/impl/json/JsonIO.cc b/lang/c++/impl/json/JsonIO.cc
index 8273f392e8..5f5fe8e3bc 100644
--- a/lang/c++/impl/json/JsonIO.cc
+++ b/lang/c++/impl/json/JsonIO.cc
@@ -293,13 +293,11 @@ JsonParser::Token JsonParser::tryString() {
break;
case 'u':
case 'U': {
- uint32_t n = 0;
char e[4];
in_.readBytes(reinterpret_cast<uint8_t *>(e), 4);
sv.push_back('\\');
sv.push_back(ch);
for (char c : e) {
- n *= 16;
if (isdigit(c) || (c >= 'a' && c <= 'f') || (c >= 'A'
&& c <= 'F')) {
sv.push_back(c);
} else {