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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 11:52:55 +0000 (20:52 +0900)
CID 1384262.

src/basic/exec-util.c

index a97295a..0829b3d 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) {