Merge pull request #1411 from aminya/c-warnings

Fix compiling C library with Clang on Windows
This commit is contained in:
Amaan Qureshi 2023-08-03 13:39:52 -04:00 committed by GitHub
commit 05a4f9f3e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -1815,7 +1815,11 @@ void ts_parser_print_dot_graphs(TSParser *self, int fd) {
}
if (fd >= 0) {
#ifdef _WIN32
self->dot_graph_file = _fdopen(fd, "a");
#else
self->dot_graph_file = fdopen(fd, "a");
#endif
} else {
self->dot_graph_file = NULL;
}

View file

@ -305,7 +305,7 @@ static void ts_stack__add_slice(
array_push(&self->slices, slice);
}
inline StackSliceArray stack__iter(
static StackSliceArray stack__iter(
Stack *self,
StackVersion version,
StackCallback callback,