summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-07 15:14:01 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-07 15:14:01 +0100
commitfbc4b4db3a9690906a96e16724350a6241cf32a5 (patch)
tree5d4ce0eb662b5d979696600ce3257648fc59556d /src/fileio.c
parentcb4b01230be26ada92a1622c2278277d59ef2ec1 (diff)
patch 7.4.1276v7.4.1276
Problem: Warning for not using return value of fcntl(). Solution: Explicitly ignore the return value.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index ecec7571a9..f0ef675323 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2350,7 +2350,7 @@ failed:
{
int fdflags = fcntl(fd, F_GETFD);
if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
- fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC);
+ (void)fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC);
}
#endif
vim_free(buffer);