pipecmd: fix -Wextra complaint about empty body.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 6 Nov 2016 06:44:53 +0000 (17:14 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 6 Nov 2016 06:44:53 +0000 (17:14 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/pipecmd/pipecmd.c

index 22903bb34627b0df674f7c14b78dfe7a7907bb74..32772a83bc7b69c96cff57747aa779771f2e7604 100644 (file)
@@ -123,8 +123,9 @@ pid_t pipecmdarr(int *fd_fromchild, int *fd_tochild, int *fd_errfromchild,
        child_errno_fail:
                err = errno;
                /* Gcc's warn-unused-result fail. */
-               if (write(execfail[1], &err, sizeof(err)))
+               if (write(execfail[1], &err, sizeof(err))) {
                        ;
+               }
                exit(127);
        }