Skip to content

Commit

Permalink
Fix compiler warning on non-Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed May 28, 2016
1 parent ca5094f commit a7419c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/mmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ void HugeRealloc(std::size_t to, bool zero_new, scoped_memory &mem) {
mem.reset();
return;
}
#ifdef __linux__
std::size_t from_size = mem.size();
#endif // __linux__
switch (mem.source()) {
case scoped_memory::NONE_ALLOCATED:
HugeMalloc(to, zero_new, mem);
Expand Down

0 comments on commit a7419c4

Please sign in to comment.