]> granicus.if.org Git - vim/commitdiff
patch 8.0.0969: Coverity warning for unused return value v8.0.0969
authorBram Moolenaar <Bram@vim.org>
Sat, 19 Aug 2017 19:26:44 +0000 (21:26 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 19 Aug 2017 19:26:44 +0000 (21:26 +0200)
Problem:    Coverity warning for unused return value.
Solution:   Add (void) to avoid the warning.

src/channel.c
src/version.c

index 79cca795f31f5d2204499b0bf0b4c8469d826661..1680d0dd1e17efb2c11dc24085edf2b2c17390cf 100644 (file)
@@ -3559,7 +3559,7 @@ channel_set_nonblock(channel_T *channel, ch_part_T part)
 
        ioctlsocket(fd, FIONBIO, &val);
 #else
-       fcntl(fd, F_SETFL, O_NONBLOCK);
+       (void)fcntl(fd, F_SETFL, O_NONBLOCK);
 #endif
        ch_part->ch_nonblocking = TRUE;
     }
index 2f9012745108635ff3d67d194a99951669d1f8eb..c1260ec870a58b573cc294380e90405376eee905 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    969,
 /**/
     968,
 /**/