Commit acdcf7e4 authored by Paul Tarjan's avatar Paul Tarjan Committed by Dave Watson

kill unused vars in folly

Summary: these print as errors when compiling hhvm opensource

Test Plan: none

Reviewed By: tudorb@fb.com

FB internal diff: D1195649
parent 581e60e2
...@@ -163,8 +163,7 @@ void MemoryIdler::unmapUnusedStack(size_t retain) { ...@@ -163,8 +163,7 @@ void MemoryIdler::unmapUnusedStack(size_t retain) {
// errno of ENOMEM. We can also get an EAGAIN, theoretically. // errno of ENOMEM. We can also get an EAGAIN, theoretically.
// EINVAL means either an invalid alignment or length, or that some // EINVAL means either an invalid alignment or length, or that some
// of the pages are locked or shared. Neither should occur. // of the pages are locked or shared. Neither should occur.
int e = errno; assert(errno == EAGAIN || errno == ENOMEM);
assert(e == EAGAIN || e == ENOMEM);
} }
} }
......
...@@ -189,8 +189,6 @@ void Symbolizer::symbolize(const uintptr_t* addresses, ...@@ -189,8 +189,6 @@ void Symbolizer::symbolize(const uintptr_t* addresses,
char buf[PATH_MAX + 100]; // Long enough for any line char buf[PATH_MAX + 100]; // Long enough for any line
LineReader reader(fd, buf, sizeof(buf)); LineReader reader(fd, buf, sizeof(buf));
char fileNameBuf[PATH_MAX];
while (remaining != 0) { while (remaining != 0) {
StringPiece line; StringPiece line;
if (reader.readLine(line) != LineReader::kReading) { if (reader.readLine(line) != LineReader::kReading) {
......
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