parse.y: pack op_tbl

* parse.y (op_tbl): pack limited size strings.  gcc/clang warn
  if initializer-string for char array is too long, but no option
  to err it now.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-07-04 06:10:37 +00:00
parent d21c35ca6a
commit 5e294b7820

View File

@ -10119,8 +10119,8 @@ rb_parser_while_loop(VALUE vparser, NODE *node, int chop, int split)
}
static const struct {
ID token;
const char *name;
unsigned short token;
const char name[3], term;
} op_tbl[] = {
{tDOT2, ".."},
{tDOT3, "..."},