From: Paul Tarjan Date: Fri, 28 Feb 2014 09:25:57 +0000 (-0800) Subject: kill unused vars in folly X-Git-Tag: v0.22.0~667 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=acdcf7e4887d6c19e6b01aa4cdc73e2e9c944c69;p=folly.git 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 --- diff --git a/folly/detail/MemoryIdler.cpp b/folly/detail/MemoryIdler.cpp index 711bd90f..680a7562 100644 --- a/folly/detail/MemoryIdler.cpp +++ b/folly/detail/MemoryIdler.cpp @@ -163,8 +163,7 @@ void MemoryIdler::unmapUnusedStack(size_t retain) { // errno of ENOMEM. We can also get an EAGAIN, theoretically. // EINVAL means either an invalid alignment or length, or that some // of the pages are locked or shared. Neither should occur. - int e = errno; - assert(e == EAGAIN || e == ENOMEM); + assert(errno == EAGAIN || errno == ENOMEM); } } diff --git a/folly/experimental/symbolizer/Symbolizer.cpp b/folly/experimental/symbolizer/Symbolizer.cpp index e2e090ad..80601aef 100644 --- a/folly/experimental/symbolizer/Symbolizer.cpp +++ b/folly/experimental/symbolizer/Symbolizer.cpp @@ -189,8 +189,6 @@ void Symbolizer::symbolize(const uintptr_t* addresses, char buf[PATH_MAX + 100]; // Long enough for any line LineReader reader(fd, buf, sizeof(buf)); - char fileNameBuf[PATH_MAX]; - while (remaining != 0) { StringPiece line; if (reader.readLine(line) != LineReader::kReading) {