Mercurial > vim
diff src/viminfo.c @ 30077:d45ee1f829ba v9.0.0376
patch 9.0.0376: clang warns for dead assignments
Commit: https://github.com/vim/vim/commit/6b085b9d7367e077ca69f4f82ba0f92cc6b6e443
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Sep 4 12:47:21 2022 +0100
patch 9.0.0376: clang warns for dead assignments
Problem: Clang warns for dead assignments.
Solution: Adjust the code. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/11048)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Sep 2022 14:00:03 +0200 |
parents | 4fcf816aa806 |
children | 029c59bf78f1 |
line wrap: on
line diff
--- a/src/viminfo.c +++ b/src/viminfo.c @@ -2324,7 +2324,7 @@ copy_viminfo_marks( // Read the next line. If it has the "*" mark compare the // time stamps. Write entries from "buflist" that are // newer. - if (!(eof = viminfo_readline(virp)) && line[0] == TAB) + if (!viminfo_readline(virp) && line[0] == TAB) { did_read_line = TRUE; if (line[1] == '*')