diff options
author | dundargoc <gocdundar@gmail.com> | 2023-11-12 13:13:58 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-12 21:26:39 +0100 |
commit | 353a4be7e84fdc101318215bdcc8a7e780d737fe (patch) | |
tree | ad75dc836a028d1e3596e9b09ad5d1bc118d0c01 /src/nvim/drawline.c | |
parent | 2a57613b9b4206cc627efa63012aac791b8f89e0 (diff) | |
download | rneovim-353a4be7e84fdc101318215bdcc8a7e780d737fe.tar.gz rneovim-353a4be7e84fdc101318215bdcc8a7e780d737fe.tar.bz2 rneovim-353a4be7e84fdc101318215bdcc8a7e780d737fe.zip |
build: remove PVS
We already have an extensive suite of static analysis tools we use,
which causes a fair bit of redundancy as we get duplicate warnings. PVS
is also prone to give false warnings which creates a lot of work to
identify and disable.
Diffstat (limited to 'src/nvim/drawline.c')
-rw-r--r-- | src/nvim/drawline.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c index b5438e649c..2ef1083cf8 100644 --- a/src/nvim/drawline.c +++ b/src/nvim/drawline.c @@ -1,6 +1,3 @@ -// This is an open source non-commercial project. Dear PVS-Studio, please check -// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - // drawline.c: Functions for drawing window lines on the screen. // This is the middle level, drawscreen.c is the top and grid.c the lower level. @@ -1439,7 +1436,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool number_onl } else { // Long line, use only the last SPWORDLEN bytes. nextlinecol = (int)v - SPWORDLEN; - memmove(nextline, line + nextlinecol, SPWORDLEN); // -V1086 + memmove(nextline, line + nextlinecol, SPWORDLEN); nextline_idx = SPWORDLEN + 1; } } @@ -2146,7 +2143,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool number_onl decor_attr = get_syntax_attr((colnr_T)v - 1, spv->spv_has_spell ? &can_spell : NULL, false); - if (did_emsg) { // -V547 + if (did_emsg) { wp->w_s->b_syn_error = true; has_syntax = false; } else { |