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/memfile.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/memfile.c')
-rw-r--r-- | src/memfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memfile.c b/src/memfile.c index 4db84dfcc..56719eec7 100644 --- a/src/memfile.c +++ b/src/memfile.c @@ -1312,7 +1312,7 @@ mf_do_open( #ifdef HAVE_FD_CLOEXEC int fdflags = fcntl(mfp->mf_fd, F_GETFD); if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) - fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC); + (void)fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC); #endif #if defined(HAVE_SELINUX) || defined(HAVE_SMACK) mch_copy_sec(fname, mfp->mf_fname); |