+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 Joel E. Denny <jdenny@ces.clemson.edu>
Warn about character literals not of length one.
2009-07-24 Joel E. Denny <jdenny@ces.clemson.edu>
Warn about character literals not of length one.
{
/* FIXME: Eventually, make these errors. */
size_t length = strlen (last_string);
{
/* FIXME: Eventually, make these errors. */
size_t length = strlen (last_string);
- if (strlen (last_string) < 3)
warn_at (*loc, _("empty character literal"));
warn_at (*loc, _("empty character literal"));
- else if (strlen (last_string) > 3)
warn_at (*loc, _("extra characters in character literal"));
}
if (yytext[0] == '\n')
warn_at (*loc, _("extra characters in character literal"));
}
if (yytext[0] == '\n')