Merge pull request #1411 from aminya/c-warnings
Fix compiling C library with Clang on Windows
This commit is contained in:
commit
05a4f9f3e3
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue