tree-sitter/lib/src
Rich Siegel 150eb2966b Fixed warning/error when compiling with clang -Os.
DISCUSSION:

When compiling with `-Os` for "smallest, fastest", an error is reported in `parser.c`:

```
/Users/siegel/git/tree-sitter/lib/src/./parser.c:1368:10: error: unused variable 'did_merge' [-Werror,-Wunused-variable]
    bool did_merge = ts_stack_merge(self->stack, version, previous_version_count);
         ^
1 error generated.
```

This is because with `NDEBUG` set,  `assert(e)` collapses to `(void)0`,
which in turn means that `did_merge` does not actually get consumed.
This seems to get caught when compiling with `-Os`, but not otherwise.

Compiler version:
```
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
```
2022-03-04 18:00:16 -05:00
..
unicode Expand on query docs 2019-10-30 10:26:10 -07:00
alloc.c Simplify allocation-recording in test suite using new ts_set_allocator API 2021-12-30 16:09:07 -08:00
alloc.h Simplify allocation-recording in test suite using new ts_set_allocator API 2021-12-30 16:09:07 -08:00
array.h query: Fix escape sequence parsing in anonymous node patterns 2020-10-28 13:55:13 -07:00
atomic.h Fix compilation with TinyCC 2020-10-21 15:41:19 +08:00
clock.h Don't use clock_gettime on macOS 2019-06-12 19:03:46 +02:00
error_costs.h Just call the C lib 'the library' everywhere, don't call it a 'runtime' 2019-01-10 15:22:39 -08:00
get_changed_ranges.c Delete unused code, tweak whitespace 2022-01-19 16:54:57 -08:00
get_changed_ranges.h Just call the C lib 'the library' everywhere, don't call it a 'runtime' 2019-01-10 15:22:39 -08:00
host.h Make SubtreeInlineData work on Big-Endian 2021-12-24 16:47:10 +01:00
language.c Delete unused code, tweak whitespace 2022-01-19 16:54:57 -08:00
language.h Add --abi flag to generate command, generate version 13 by default 2022-01-17 14:50:47 -08:00
length.h Use explicit syntax for functions with no parameters 2019-03-21 16:06:06 -07:00
lexer.c Added tests 2022-01-11 12:05:37 -05:00
lexer.h When editing, properly invalidate trees that depend on get_column 2021-03-11 14:46:13 -08:00
lib.c Allow to change the allocator dynamically 2021-12-17 20:16:20 +08:00
node.c Merge branch 'nhasabni/ts_node_child_field_name' of https://github.com/nhasabni/tree-sitter into nhasabni/ts_node_child_field_name 2021-05-20 23:37:03 +00:00
parser.c Fixed warning/error when compiling with clang -Os. 2022-03-04 18:00:16 -05:00
point.h Change goto_first_child_for_{byte,point} to compare nodes' ranges inclusively 2022-02-04 12:38:33 -08:00
query.c Merge pull request #1602 from the-mikedavis/md-ignore-future-matches-for-non-local-patterns 2022-01-19 16:40:30 -08:00
reduce_action.h Generate node-fields.json file 2019-02-12 11:06:18 -08:00
reusable_node.h Allocate parent nodes together with their child array 2020-10-23 12:15:44 -07:00
stack.c Store the lookahead subtree of paused stack versions, not just the lookahead symbol 2022-02-22 09:45:26 -08:00
stack.h Store the lookahead subtree of paused stack versions, not just the lookahead symbol 2022-02-22 09:45:26 -08:00
subtree.c Properly incorporate lookahead bytes when recovering via missing token 2022-03-02 17:12:25 -08:00
subtree.h Properly incorporate lookahead bytes when recovering via missing token 2022-03-02 17:12:25 -08:00
tree.c Remove interior mutability for parent-node caching in Tree 2021-05-20 13:56:26 -07:00
tree.h Remove interior mutability for parent-node caching in Tree 2021-05-20 13:56:26 -07:00
tree_cursor.c Change goto_first_child_for_{byte,point} to compare nodes' ranges inclusively 2022-02-04 12:38:33 -08:00
tree_cursor.h query: Handle captured wildcard nodes at the root of patterns 2020-10-08 12:34:08 -07:00
unicode.h lib: remove utf8proc dependency (#436) 2019-10-14 11:18:39 -07:00