aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-04 02:29:35 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-01-04 02:29:35 +0100
commit788ade1d29733f798ec51f192f58082c5b07acb4 (patch)
treef5c8a766e08769beb71bf060661db58a7f9c3bdb /src
parent423b6d9907c0ae27957163c45abb9897210a89b7 (diff)
downloadrneovim-788ade1d29733f798ec51f192f58082c5b07acb4.tar.gz
rneovim-788ade1d29733f798ec51f192f58082c5b07acb4.tar.bz2
rneovim-788ade1d29733f798ec51f192f58082c5b07acb4.zip
PVS/V751: tui.c, Parameter is not used
False positive. Documentation for grid_scroll says "`cols` is always zero, reserved for future use".
Diffstat (limited to 'src')
-rw-r--r--src/nvim/tui/tui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 64e368ffb3..2e26a75be1 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1052,6 +1052,7 @@ static void tui_grid_scroll(UI *ui, Integer g, Integer startrow, Integer endrow,
Integer startcol, Integer endcol,
Integer rows, Integer cols)
{
+ (void)cols; // unused
TUIData *data = ui->data;
UGrid *grid = &data->grid;
int top = (int)startrow, bot = (int)endrow-1;