Skip to content

Commit 0a664f1

Browse files
committed
exec-util: cast to void when return value is ignored
CID 1384262.
1 parent 78e2f08 commit 0a664f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic/exec-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static int do_spawn(const char *path, char *argv[], int stdout_fd, pid_t *pid) {
6767
dup2(stdout_fd, STDOUT_FILENO) < 0)
6868
return -errno;
6969

70-
fd_cloexec(STDOUT_FILENO, false);
70+
(void) fd_cloexec(STDOUT_FILENO, false);
7171
}
7272

7373
if (!argv) {

0 commit comments

Comments
 (0)