From 2d1214ef46a69f891415a3004412c41e12cebc17 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 5 Jan 2019 23:16:16 +0100 Subject: [PATCH] PVS/V501: diff.c: silence warning False positive: vim_fgets has side effects. ref 8586770e1fd8 --- src/nvim/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/diff.c b/src/nvim/diff.c index e0cd285667..866161e5cf 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -1542,7 +1542,7 @@ static void diff_read(int idx_orig, int idx_new, diffout_T *dout) } else if ((STRNCMP(line, "@@ ", 3) == 0)) { diffstyle = DIFF_UNIFIED; } else if ((STRNCMP(line, "--- ", 4) == 0) - && (vim_fgets(linebuf, LBUFLEN, fd) == 0) + && (vim_fgets(linebuf, LBUFLEN, fd) == 0) // -V501 && (STRNCMP(line, "+++ ", 4) == 0) && (vim_fgets(linebuf, LBUFLEN, fd) == 0) // -V501 && (STRNCMP(line, "@@ ", 3) == 0)) {