summaryrefslogtreecommitdiff
path: root/src/gen.c
diff options
context:
space:
mode:
authorMariusz PluciƄski <mplucinski@mplucinski.com>2014-07-25 18:36:05 +0200
committerWill Estes <westes575@gmail.com>2014-11-26 15:31:53 -0500
commitf2aa9e112fd0753e62630d811db5b78475d668d4 (patch)
tree2f9b2e13f5daff5ca97bd5539efd920ea74cae23 /src/gen.c
parenta13574440bbda9c07e3a4dab5ca187efa0095d64 (diff)
Fix `label unused` warning
Diffstat (limited to 'src/gen.c')
-rw-r--r--src/gen.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gen.c b/src/gen.c
index fc1c4a6..049cbfe 100644
--- a/src/gen.c
+++ b/src/gen.c
@@ -528,11 +528,8 @@ void gen_find_action (void)
indent_puts ("yy_current_state = *--YY_G(yy_state_ptr);");
indent_puts ("YY_G(yy_lp) = yy_accept[yy_current_state];");
- if (!variable_trailing_context_rules)
- outn ("m4_ifdef( [[M4_YY_USES_REJECT]],\n[[");
- outn ("find_rule: /* we branch to this label when backing up */");
- if (!variable_trailing_context_rules)
- outn ("]])\n");
+ if(reject_really_used)
+ outn ("find_rule: /* we branch to this label when backing up */");
indent_puts
("for ( ; ; ) /* until we find what rule we matched */");