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:
parent
d21c35ca6a
commit
5e294b7820
4
parse.y
4
parse.y
@ -10119,8 +10119,8 @@ rb_parser_while_loop(VALUE vparser, NODE *node, int chop, int split)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
ID token;
|
unsigned short token;
|
||||||
const char *name;
|
const char name[3], term;
|
||||||
} op_tbl[] = {
|
} op_tbl[] = {
|
||||||
{tDOT2, ".."},
|
{tDOT2, ".."},
|
||||||
{tDOT3, "..."},
|
{tDOT3, "..."},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user