pipecmd: fix -Wextra complaint about empty body.
[ccan] / 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);
        }