aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorMichael Ennen <mike.ennen@gmail.com>2016-05-10 23:30:26 -0700
committerMichael Ennen <mike.ennen@gmail.com>2016-05-17 11:24:25 -0700
commitcf29b4025d67b92755f37947445731ac099a1560 (patch)
treeeaef9e63b1ba898738839e73730d2d2ec54a4642 /src/nvim/fileio.c
parent6396beb432a59c204883f737577a37a4c06a7bc7 (diff)
downloadrneovim-cf29b4025d67b92755f37947445731ac099a1560.tar.gz
rneovim-cf29b4025d67b92755f37947445731ac099a1560.tar.bz2
rneovim-cf29b4025d67b92755f37947445731ac099a1560.zip
vim-patch:7.4.1276
Problem: Warning for not using return value of fcntl(). Solution: Explicitly ignore the return value. https://github.com/vim/vim/commit/fbc4b4db3a9690906a96e16724350a6241cf32a5
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index db1469db97..4d9e10fb85 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -1749,8 +1749,9 @@ failed:
#ifdef HAVE_FD_CLOEXEC
else {
int fdflags = fcntl(fd, F_GETFD);
- if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
- fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC);
+ if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) {
+ (void)fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC);
+ }
}
#endif
xfree(buffer);