diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-07 15:14:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-07 15:14:01 +0100 |
commit | fbc4b4db3a9690906a96e16724350a6241cf32a5 (patch) | |
tree | 5d4ce0eb662b5d979696600ce3257648fc59556d /src/fileio.c | |
parent | cb4b01230be26ada92a1622c2278277d59ef2ec1 (diff) | |
download | vim-git-fbc4b4db3a9690906a96e16724350a6241cf32a5.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index ecec7571a..f0ef67532 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); |