Skip to content

Commit

Permalink
policy: Fix compile warnings in lex source files.
Browse files Browse the repository at this point in the history
The gcc 4.8.1 compiler complains about this, possibly
related to dodgy lex on Fedora 19.
  • Loading branch information
greearb committed Aug 30, 2013
1 parent b7f42a6 commit 5eaebe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xorp/policy/backend/backend.ll
Expand Up @@ -111,7 +111,7 @@ void yyerror(const char *m)
ostringstream oss;
oss << "Error on line " << _parser_lineno << " near (";
for(int i = 0; i < yyleng; i++)
for(yy_size_t i = 0; i < yyleng; i++)
oss << yytext[i];
oss << "): " << m;
Expand Down
2 changes: 1 addition & 1 deletion xorp/policy/policy.ll
Expand Up @@ -218,7 +218,7 @@ void yyerror(const char *m)
ostringstream oss;
oss << "Error on line " << _parser_lineno << " near (";
for(int i = 0; i < yyleng; i++)
for(size_t i = 0; i < yyleng; i++)
oss << yytext[i];
oss << "): " << m;
Expand Down

0 comments on commit 5eaebe3

Please sign in to comment.