Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/flex/dist avoid unused label warning



details:   https://anonhg.NetBSD.org/src/rev/cad45ce4055e
branches:  trunk
changeset: 748541:cad45ce4055e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 26 19:23:33 2009 +0000

description:
avoid unused label warning

diffstat:

 external/bsd/flex/dist/gen.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 9b74e1c9ef60 -r cad45ce4055e external/bsd/flex/dist/gen.c
--- a/external/bsd/flex/dist/gen.c      Mon Oct 26 19:23:19 2009 +0000
+++ b/external/bsd/flex/dist/gen.c      Mon Oct 26 19:23:33 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gen.c,v 1.2 2009/10/26 04:27:15 christos Exp $ */
+/*     $NetBSD: gen.c,v 1.3 2009/10/26 19:23:33 christos Exp $ */
 
 /* gen - actual generation (writing) of flex scanners */
 
@@ -508,7 +508,9 @@
                indent_puts ("yy_current_state = *--YY_G(yy_state_ptr);");
                indent_puts ("YY_G(yy_lp) = yy_accept[yy_current_state];");
 
+               outn ("#ifdef YY_USES_REJECT");
                outn ("find_rule: /* we branch to this label when backing up */");
+               outn ("#endif");
 
                indent_puts
                        ("for ( ; ; ) /* until we find what rule we matched */");



Home | Main Index | Thread Index | Old Index