commit | fbc4b4db3a9690906a96e16724350a6241cf32a5 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Feb 07 15:14:01 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Feb 07 15:14:01 2016 +0100 |
tree | 5d4ce0eb662b5d979696600ce3257648fc59556d | |
parent | cb4b01230be26ada92a1622c2278277d59ef2ec1 [diff] [blame] |
patch 7.4.1276 Problem: Warning for not using return value of fcntl(). Solution: Explicitly ignore the return value.
diff --git a/src/fileio.c b/src/fileio.c index ecec757..f0ef675 100644 --- a/src/fileio.c +++ b/src/fileio.c
@@ -2350,7 +2350,7 @@ { 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);