This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch branch-1.12
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.12 by this push:
     new 725863fe8f [C++] remove unused variable (#3607)
725863fe8f is described below

commit 725863fe8fd2f25f890a2b51bc96cc97c1b99c98
Author: Stephan Lachnit <[email protected]>
AuthorDate: Mon Jan 5 07:38:46 2026 +0100

    [C++] remove unused variable (#3607)
    
    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 {

Reply via email to