Commit 7a9f9be2 authored by Harris Hancock's avatar Harris Hancock

Silence two unused result warnings

parent 2b1dfaac
...@@ -36,7 +36,7 @@ struct SkipTestHack { ...@@ -36,7 +36,7 @@ struct SkipTestHack {
SkipTestHack() { SkipTestHack() {
if (getenv("CAPNP_SKIP_FUZZ_TEST") != nullptr) { if (getenv("CAPNP_SKIP_FUZZ_TEST") != nullptr) {
char message[] = "Skipping test because CAPNP_SKIP_FUZZ_TEST is set in environment.\n"; char message[] = "Skipping test because CAPNP_SKIP_FUZZ_TEST is set in environment.\n";
write(STDOUT_FILENO, message, sizeof(message)); KJ_SYSCALL(write(STDOUT_FILENO, message, sizeof(message)));
_exit(0); _exit(0);
} }
} }
......
...@@ -56,7 +56,7 @@ TEST(Io, WriteVec) { ...@@ -56,7 +56,7 @@ TEST(Io, WriteVec) {
KJ_TEST("stringify AutoCloseFd") { KJ_TEST("stringify AutoCloseFd") {
int fds[2]; int fds[2];
miniposix::pipe(fds); KJ_SYSCALL(miniposix::pipe(fds));
AutoCloseFd in(fds[0]), out(fds[1]); AutoCloseFd in(fds[0]), out(fds[1]);
KJ_EXPECT(kj::str(in) == kj::str(fds[0]), in, fds[0]); KJ_EXPECT(kj::str(in) == kj::str(fds[0]), in, fds[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment