Browse Source

pipecmd: fix -Wextra complaint about empty body.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 9 years ago
parent
commit
6b74669644
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ccan/pipecmd/pipecmd.c

+ 2 - 1
ccan/pipecmd/pipecmd.c

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