From fbc4b4db3a9690906a96e16724350a6241cf32a5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 7 Feb 2016 15:14:01 +0100 Subject: patch 7.4.1276 Problem: Warning for not using return value of fcntl(). Solution: Explicitly ignore the return value. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fileio.c') 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); -- cgit v1.2.3