Fix a --enable-gcc-warnings problem.

* src/scan-gram.l (SC_ESCAPED_CHARACTER): Actually use length
variable.
This commit is contained in:
Joel E. Denny
2009-07-29 13:47:02 -04:00
parent 1e20ad112f
commit a1ed2b71fa
2 changed files with 8 additions and 2 deletions

View File

@@ -472,9 +472,9 @@ splice (\\[ \f\t\v]*\n)*
{
/* FIXME: Eventually, make these errors. */
size_t length = strlen (last_string);
if (strlen (last_string) < 3)
if (length < 3)
warn_at (*loc, _("empty character literal"));
else if (strlen (last_string) > 3)
else if (length > 3)
warn_at (*loc, _("extra characters in character literal"));
}
if (yytext[0] == '\n')