Work around a `label defined but not used' warning in *generated* code.
authorSimon Schubert <corecode@dragonflybsd.org>
Sun, 3 Feb 2008 13:14:12 +0000 (13:14 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Sun, 3 Feb 2008 13:14:12 +0000 (13:14 +0000)
Obtained-from:  FreeBSD

usr.bin/lex/gen.c

index 9931fa3..a86992f 100644 (file)
@@ -28,7 +28,7 @@
 
 /* $Header: /home/daffy/u0/vern/flex/RCS/gen.c,v 2.56 96/05/25 20:43:38 vern Exp $ */
 /* $FreeBSD: src/usr.bin/lex/gen.c,v 1.5 1999/10/27 07:56:44 obrien Exp $ */
-/* $DragonFly: src/usr.bin/lex/gen.c,v 1.4 2005/08/04 17:31:22 drhodus Exp $ */
+/* $DragonFly: src/usr.bin/lex/gen.c,v 1.5 2008/02/03 13:14:12 corecode Exp $ */
 
 #include "flexdef.h"
 
@@ -282,6 +282,8 @@ void gen_find_action(void)
                indent_puts( "yy_current_state = *--yy_state_ptr;" );
                indent_puts( "yy_lp = yy_accept[yy_current_state];" );
 
+               outn(
+               "goto find_rule; /* avoid `defined but not used' warning */");
                outn(
                "find_rule: /* we branch to this label when backing up */" );