From 32122e02c40963269f3da56bd28eb6400aea869c Mon Sep 17 00:00:00 2001
From: Kristof Szabados <Kristof.Szabados@ericsson.com>
Date: Sun, 13 Dec 2020 14:15:19 +0100
Subject: [PATCH] as the variable is not read, the assignment is not needed
 either.

Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com>
---
 compiler2/record_of.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/compiler2/record_of.c b/compiler2/record_of.c
index 79bb59e70..bcb5b56ee 100644
--- a/compiler2/record_of.c
+++ b/compiler2/record_of.c
@@ -1503,10 +1503,10 @@ void defRecordOfClass1(const struct_of_def *sdef, output_struct *output)
       "          }\n"
       "        }\n"
       "        else if (XML_READER_TYPE_END_ELEMENT == type) {\n"
-      "          for (; p_reader.Depth() > xml_depth; rd_ok = p_reader.Read()) ;\n"
+      "          for (; p_reader.Depth() > xml_depth; p_reader.Read()) ;\n"
       "          if (own_tag) {\n"
       "            verify_end(p_reader, p_td, xml_depth, e_xer);\n"
-      "            rd_ok = p_reader.Read();\n" /* move forward one last time */
+      "            p_reader.Read();\n" /* move forward one last time */
       "          }\n"
       "          break;\n"
       "        }\n"
@@ -3026,10 +3026,10 @@ void defRecordOfClassMemAllocOptimized(const struct_of_def *sdef, output_struct
       "          }\n"
       "        }\n"
       "        else if (XML_READER_TYPE_END_ELEMENT == type) {\n"
-      "          for (; p_reader.Depth() > xml_depth; rd_ok = p_reader.Read()) ;\n"
+      "          for (; p_reader.Depth() > xml_depth; p_reader.Read()) ;\n"
       "          if (own_tag) {\n"
       "            verify_end(p_reader, p_td, xml_depth, e_xer);\n"
-      "            rd_ok = p_reader.Read();\n" /* move forward one last time */
+      "            p_reader.Read();\n" /* move forward one last time */
       "          }\n"
       "          break;\n"
       "        }\n"
-- 
GitLab