chiark / gitweb /
exec-util: cast to void when return value is ignored
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 01:25:32 +0000 (10:25 +0900)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:03 +0000 (07:50 +0200)
CID 1384262.

src/basic/exec-util.c

index e195bf98558a8fd02bb16e9dd1100fb42222156c..246cc4f4f844fbb1a370a992975c9037c4f46e5e 100644 (file)
@@ -67,7 +67,7 @@ static int do_spawn(const char *path, char *argv[], int stdout_fd, pid_t *pid) {
                             dup2(stdout_fd, STDOUT_FILENO) < 0)
                                 return -errno;
 
-                        fd_cloexec(STDOUT_FILENO, false);
+                        (void) fd_cloexec(STDOUT_FILENO, false);
                 }
 
                 if (!argv) {