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

@ -9,9 +9,7 @@ struct TSDocument {
TSNode *node;
};
TSDocument *ts_document_make() {
return calloc(sizeof(TSDocument), 1);
}
TSDocument *ts_document_make() { return calloc(sizeof(TSDocument), 1); }
void ts_document_free(TSDocument *document) {
ts_parser_destroy(&document->parser);