diff options
| author | dundargoc <gocdundar@gmail.com> | 2023-11-10 14:06:04 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-20 20:05:43 +0100 |
| commit | 488038580934f301c1528a14548ec0cabd16c2cd (patch) | |
| tree | ef0d5c2e3de1cd4dce86e319c68b90c2096d2408 /src/nvim/marktree.c | |
| parent | a6e3d93421ba13c407a96fac9cc01fa41ec7ad98 (diff) | |
| download | rneovim-488038580934f301c1528a14548ec0cabd16c2cd.tar.gz rneovim-488038580934f301c1528a14548ec0cabd16c2cd.tar.bz2 rneovim-488038580934f301c1528a14548ec0cabd16c2cd.zip | |
build: adjust clang-tidy warning exclusion logic
Enable all clang-tidy warnings by default instead of disabling them.
This ensures that we don't miss useful warnings on each clang-tidy
version upgrade. A drawback of this is that it will force us to either
fix or adjust the warnings as soon as possible.
Diffstat (limited to 'src/nvim/marktree.c')
| -rw-r--r-- | src/nvim/marktree.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c index 5cc3d3d3ee..f350001977 100644 --- a/src/nvim/marktree.c +++ b/src/nvim/marktree.c @@ -773,13 +773,14 @@ static void intersect_mov(Intersection *restrict x, Intersection *restrict y, kv_size(*y) = yn; } -bool intersect_mov_test(uint64_t *x, size_t nx, uint64_t *y, size_t ny, uint64_t *win, size_t nwin, - uint64_t *wout, size_t *nwout, uint64_t *dout, size_t *ndout) +bool intersect_mov_test(const uint64_t *x, size_t nx, const uint64_t *y, size_t ny, + const uint64_t *win, size_t nwin, uint64_t *wout, size_t *nwout, + uint64_t *dout, size_t *ndout) { // x is immutable in the context of intersect_mov. y might shrink, but we // don't care about it (we get it the deleted ones in d) - Intersection xi = { .items = x, .size = nx }; - Intersection yi = { .items = y, .size = ny }; + Intersection xi = { .items = (uint64_t *)x, .size = nx }; + Intersection yi = { .items = (uint64_t *)y, .size = ny }; Intersection w; kvi_init(w); |