diff --git a/compiler2/record.c b/compiler2/record.c
index 805dc50c07410724c5e33201fa202f9081c78c90..4ea1a3faf1df9971a15ef4129d326a1a83059ead 100644
--- a/compiler2/record.c
+++ b/compiler2/record.c
@@ -4489,8 +4489,7 @@ void defRecordClass1(const struct_def *sdef, output_struct *output)
        "        break;\n"
        "      }\n"
        "    } else if(limit.has_token(ml)){\n"
-       "      int tl;\n"
-       "      if((tl=limit.match(p_buf,ml))==0){\n"
+       "      if(limit.match(p_buf,ml)==0){\n"
        "        sep_found=FALSE;\n"
        "        break;\n"
        "      }\n"
@@ -4561,8 +4560,7 @@ void defRecordClass1(const struct_def *sdef, output_struct *output)
       "        return decoded_length;\n"
       "      }\n"
       "    } else if(limit.has_token(ml)){\n"
-      "      int tl;\n"
-      "      if((tl=limit.match(p_buf,ml))==0){\n"
+      "      if(limit.match(p_buf,ml)==0){\n"
       "        sep_found=FALSE;\n"
       "        break;\n"
       "      }\n"
@@ -4765,8 +4763,7 @@ void defRecordClass1(const struct_def *sdef, output_struct *output)
           "        return decoded_length;\n"
           "      }\n"
           "    } else if(limit.has_token(ml)){\n"
-          "      int tl;\n"
-          "      if((tl=limit.match(p_buf,ml))==0){\n"
+          "      if(limit.match(p_buf,ml)==0){\n"
           "        sep_found=FALSE;\n"
           "        break;\n"
           "      }\n"
diff --git a/compiler2/record_of.c b/compiler2/record_of.c
index 61b4d18956528504ededa714a0c8d1ae0a122b6a..fd28a0907b5455b7d32beb41cd921c3f2f9f657b 100644
--- a/compiler2/record_of.c
+++ b/compiler2/record_of.c
@@ -821,8 +821,7 @@ void defRecordOfClass1(const struct_of_def *sdef, output_struct *output)
       "        return decoded_length;\n"
       "      }\n"
       "    } else if(limit.has_token(ml)){\n"
-      "      int tl;\n"
-      "      if((tl=limit.match(p_buf,ml))==0){\n"
+      "      if(limit.match(p_buf,ml)==0){\n"
       "        sep_found=FALSE;\n"
       "        break;\n"
       "      }\n"
@@ -2378,8 +2377,7 @@ void defRecordOfClassMemAllocOptimized(const struct_of_def *sdef, output_struct
       "        return decoded_length;\n"
       "      }\n"
       "    } else if(limit.has_token(ml)){\n"
-      "      int tl;\n"
-      "      if((tl=limit.match(p_buf,ml))==0){\n"
+      "      if(limit.match(p_buf,ml)==0){\n"
       "        sep_found=FALSE;\n"
       "        break;\n"
       "      }\n"