Fix overridden initializer warning in tree constructor

This commit is contained in:
Max Brunsfeld 2014-08-27 22:06:27 -07:00
parent 9db291fe88
commit 0193be166b
3 changed files with 8 additions and 10 deletions

View file

@ -54,10 +54,10 @@ TSTree *ts_tree_make_node(TSSymbol symbol, size_t child_count,
.symbol = symbol,
.size = size,
.offset = offset,
.options = options,
.children = children,
.child_count = child_count,
.visible_child_count = visible_child_count, };
.options = options };
result->children = children;
result->child_count = child_count;
result->visible_child_count = visible_child_count;
TSChildWithPosition *visible_children =
ts_tree_visible_children(result, NULL);