1
0
forked from aniani/vim

patch 9.0.0383: Coverity complains about unused value

Problem:    Coverity complains about unused value.
Solution:   Use the value.
This commit is contained in:
Bram Moolenaar
2022-09-05 10:55:27 +01:00
parent 31ea6bf530
commit 963ab26842
2 changed files with 4 additions and 2 deletions

View File

@@ -404,7 +404,7 @@ spell_load_file(
* <HEADER>: <fileID> * <HEADER>: <fileID>
*/ */
for (i = 0; i < VIMSPELLMAGICL; ++i) for (i = 0; i < VIMSPELLMAGICL; ++i)
buf[i] = c = getc(fd); // <fileID> buf[i] = (c = getc(fd)) == EOF ? 0 : c; // <fileID>
if (STRNCMP(buf, VIMSPELLMAGIC, VIMSPELLMAGICL) != 0) if (STRNCMP(buf, VIMSPELLMAGIC, VIMSPELLMAGICL) != 0)
{ {
emsg(_(e_this_does_not_look_like_spell_file)); emsg(_(e_this_does_not_look_like_spell_file));
@@ -700,7 +700,7 @@ suggest_load_files(void)
* <SUGHEADER>: <fileID> <versionnr> <timestamp> * <SUGHEADER>: <fileID> <versionnr> <timestamp>
*/ */
for (i = 0; i < VIMSUGMAGICL; ++i) for (i = 0; i < VIMSUGMAGICL; ++i)
buf[i] = c = getc(fd); // <fileID> buf[i] = (c = getc(fd)) == EOF ? 0 : c; // <fileID>
if (STRNCMP(buf, VIMSUGMAGIC, VIMSUGMAGICL) != 0) if (STRNCMP(buf, VIMSUGMAGIC, VIMSUGMAGICL) != 0)
{ {
semsg(_(e_this_does_not_look_like_sug_file_str), semsg(_(e_this_does_not_look_like_sug_file_str),

View File

@@ -703,6 +703,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
383,
/**/ /**/
382, 382,
/**/ /**/