From acdcf7e4887d6c19e6b01aa4cdc73e2e9c944c69 Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Fri, 28 Feb 2014 01:25:57 -0800 Subject: [PATCH] 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 --- folly/detail/MemoryIdler.cpp | 3 +-- folly/experimental/symbolizer/Symbolizer.cpp | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) 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) { -- 2.34.1