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/optionstr.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/optionstr.c')
-rw-r--r-- | src/nvim/optionstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index 0d36634d9e..000fbaba95 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -2566,7 +2566,7 @@ static int opt_strings_flags(const char *val, char **values, unsigned *flagp, bo if (strncmp(values[i], val, len) == 0 && ((list && val[len] == ',') || val[len] == NUL)) { val += len + (val[len] == ','); - assert(i < sizeof(1U) * 8); + assert(i < sizeof(new_flags) * 8); new_flags |= (1U << i); break; // check next item in val list } |