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 don't produce code that has warnings.



details:   https://anonhg.NetBSD.org/src/rev/72049338de4c
branches:  trunk
changeset: 785940:72049338de4c
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 06 20:05:40 2013 +0000

description:
don't produce code that has warnings.

diffstat:

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

diffs (31 lines):

diff -r 9c4fe8776305 -r 72049338de4c external/bsd/flex/dist/flex.skl
--- a/external/bsd/flex/dist/flex.skl   Sat Apr 06 19:33:59 2013 +0000
+++ b/external/bsd/flex/dist/flex.skl   Sat Apr 06 20:05:40 2013 +0000
@@ -2372,8 +2372,7 @@
 {
        YY_BUFFER_STATE b;
        char *buf;
-       yy_size_t n;
-       int i;
+       yy_size_t i, n;
     m4_dnl M4_YY_DECL_GUTS_VAR();
 
        /* Get memory for full buffer, including space for trailing EOB's. */
diff -r 9c4fe8776305 -r 72049338de4c external/bsd/flex/dist/gen.c
--- a/external/bsd/flex/dist/gen.c      Sat Apr 06 19:33:59 2013 +0000
+++ b/external/bsd/flex/dist/gen.c      Sat Apr 06 20:05:40 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gen.c,v 1.7 2013/04/06 14:27:52 christos Exp $ */
+/*     $NetBSD: gen.c,v 1.8 2013/04/06 20:05:40 christos Exp $ */
 
 /* gen - actual generation (writing) of flex scanners */
 
@@ -1977,7 +1977,7 @@
                ("if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )");
        indent_up ();
        indent_puts ("{");
-       indent_puts ("int yyl;");
+       indent_puts ("yy_size_t yyl;");
        do_indent ();
        out_str ("for ( yyl = %s; yyl < yyleng; ++yyl )\n",
                 yymore_used ? (yytext_is_array ? "YY_G(yy_prev_more_offset)" :



Home | Main Index | Thread Index | Old Index