mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Fix a --enable-gcc-warnings problem.
* src/scan-gram.l (SC_ESCAPED_CHARACTER): Actually use length variable.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-07-29 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||
|
||||
Fix a --enable-gcc-warnings problem.
|
||||
* src/scan-gram.l (SC_ESCAPED_CHARACTER): Actually use length
|
||||
variable.
|
||||
|
||||
2009-07-24 Alex Rozenman <rozenmam@gmail.com>
|
||||
|
||||
Fix some memory leaks.
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user