Commit ca4b4d09 authored by Sean Cannella's avatar Sean Cannella Committed by dcsommer

Fix clang test compilation failures

Summary:
While working on other code I noticed folly stopped compiling
with clang. Fix that.

Test Plan: fbmake runtests (clang and gcc)

Reviewed By: lucian@fb.com

Subscribers: mathieubaudet, njormrod, bmatheny

FB internal diff: D1618189
parent 7b3f1d1d
......@@ -18,6 +18,6 @@
int main() {
folly::symbolizer::installFatalSignalHandler();
*(int*) nullptr = 1;
__builtin_trap();
return 0;
}
......@@ -46,7 +46,7 @@ BENCHMARK(ByLine_Pipes, iters) {
PCHECK(::read(rfd, &buf, 1) == 1); // wait for startup
}
CHECK_ERR(rfd >= 0);
CHECK_ERR(rfd);
auto s = byLine(folly::File(rfd)) | eachTo<int64_t>() | sum;
folly::doNotOptimizeAway(s);
......
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