Avoid empty initializer list in global constant
This commit is contained in:
parent
ced5521014
commit
a2670a39dc
1 changed files with 1 additions and 1 deletions
|
|
@ -603,7 +603,7 @@ void ts_tree_print_dot_graph(const Tree *self, const TSLanguage *language,
|
|||
fprintf(f, "}\n");
|
||||
}
|
||||
|
||||
TSExternalTokenState empty_state = {.length = 0, .short_data = {}};
|
||||
static const TSExternalTokenState empty_state = {.length = 0, .short_data = {0}};
|
||||
|
||||
bool ts_tree_external_token_state_eq(const Tree *self, const Tree *other) {
|
||||
const TSExternalTokenState *state1 = &empty_state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue