aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-04 02:29:11 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-01-04 02:29:11 +0100
commit8586770e1fd83ea42bec22ae0fd6a961159cac3e (patch)
treee527782b7203d384f3b3b37355b18d0c93da98c7 /src/nvim/diff.c
parent292b1790c8fd0c4ccf4dbff23d2cc5ed307dad08 (diff)
downloadrneovim-8586770e1fd83ea42bec22ae0fd6a961159cac3e.tar.gz
rneovim-8586770e1fd83ea42bec22ae0fd6a961159cac3e.tar.bz2
rneovim-8586770e1fd83ea42bec22ae0fd6a961159cac3e.zip
PVS/V501: diff.c: silence warning
False positive: vim_fgets has side effects.
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index 2e0b198c13..c4e011d5d1 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -1547,7 +1547,7 @@ static void diff_read(int idx_orig, int idx_new, diffout_T *dout)
} else if ((STRNCMP(line, "--- ", 4) == 0)
&& (vim_fgets(linebuf, LBUFLEN, fd) == 0)
&& (STRNCMP(line, "+++ ", 4) == 0)
- && (vim_fgets(linebuf, LBUFLEN, fd) == 0)
+ && (vim_fgets(linebuf, LBUFLEN, fd) == 0) // -V501
&& (STRNCMP(line, "@@ ", 3) == 0)) {
diffstyle = DIFF_UNIFIED;
} else {