1
0
forked from aniani/vim

patch 7.4.1276

Problem:    Warning for not using return value of fcntl().
Solution:   Explicitly ignore the return value.
This commit is contained in:
Bram Moolenaar
2016-02-07 15:14:01 +01:00
parent cb4b01230b
commit fbc4b4db3a
5 changed files with 9 additions and 4 deletions

View File

@@ -465,7 +465,7 @@ channel_open(char *hostname, int port_in, int waittime, void (*close_cb)(void))
val = 0;
ioctlsocket(sd, FIONBIO, &val);
#else
fcntl(sd, F_SETFL, 0);
(void)fcntl(sd, F_SETFL, 0);
#endif
}
@@ -1474,6 +1474,9 @@ channel_parse_messages(void)
return ret;
}
/*
* Mark references to lists used in channels.
*/
int
set_ref_in_channel(int copyID)
{