Module Name:    src
Committed By:   christos
Date:           Sat Apr  6 20:05:40 UTC 2013

Modified Files:
        src/external/bsd/flex/dist: flex.skl gen.c

Log Message:
don't produce code that has warnings.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/flex/dist/flex.skl
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/flex/dist/gen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/flex/dist/flex.skl
diff -u src/external/bsd/flex/dist/flex.skl:1.8 src/external/bsd/flex/dist/flex.skl:1.9
--- src/external/bsd/flex/dist/flex.skl:1.8	Sat Apr  6 10:27:52 2013
+++ src/external/bsd/flex/dist/flex.skl	Sat Apr  6 16:05:40 2013
@@ -2372,8 +2372,7 @@ YY_BUFFER_STATE yy_scan_bytes  YYFARGS2(
 {
 	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. */

Index: src/external/bsd/flex/dist/gen.c
diff -u src/external/bsd/flex/dist/gen.c:1.7 src/external/bsd/flex/dist/gen.c:1.8
--- src/external/bsd/flex/dist/gen.c:1.7	Sat Apr  6 10:27:52 2013
+++ src/external/bsd/flex/dist/gen.c	Sat Apr  6 16:05:40 2013
@@ -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 @@ void make_tables ()
 		("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)" :

Reply via email to