From 488038580934f301c1528a14548ec0cabd16c2cd Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 10 Nov 2023 14:06:04 +0100 Subject: 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. --- src/nvim/marktree.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/nvim/marktree.c') 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); -- cgit