From a032ac027cfd113a6e62f096e3a447db352c2b2e Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 21 Oct 2023 16:04:15 -0400 Subject: [PATCH] Compilation warning for unreachable statement - close #12 --- assets/parser.c.erb | 1 - assets/parser.d.erb | 1 - 2 files changed, 2 deletions(-) diff --git a/assets/parser.c.erb b/assets/parser.c.erb index e7da05c..1dc1b1f 100644 --- a/assets/parser.c.erb +++ b/assets/parser.c.erb @@ -390,7 +390,6 @@ static size_t find_longest_match(<%= @grammar.prefix %>context_t * context, /* Valid EOF return. */ return P_EOF; } - break; case P_DECODE_ERROR: /* If we see a decode error, we may be partially in the middle of diff --git a/assets/parser.d.erb b/assets/parser.d.erb index 9c9ec72..8aec2da 100644 --- a/assets/parser.d.erb +++ b/assets/parser.d.erb @@ -502,7 +502,6 @@ private size_t find_longest_match(<%= @grammar.prefix %>context_t * context, /* Valid EOF return. */ return P_EOF; } - break; case P_DECODE_ERROR: /* If we see a decode error, we may be partially in the middle of