Fix build warnings

This commit is contained in:
Max Brunsfeld 2016-02-12 14:07:30 -08:00
parent afed91661b
commit 3f08bfb264
7 changed files with 11 additions and 8 deletions

View file

@ -38,8 +38,9 @@ TSInput ts_string_input_make(const char *string) {
.payload = input,
.read_fn = ts_string_input_read,
.seek_fn = ts_string_input_seek,
.encoding = TSInputEncodingUTF8,
};
error:
return (TSInput){NULL, NULL, NULL};
return (TSInput){NULL, NULL, NULL, TSInputEncodingUTF8};
}