From 0d57e3ad7d0f17b06db20f70562d127f7d44d377 Mon Sep 17 00:00:00 2001 From: Radheshyam Balasundaram Date: Thu, 17 Jul 2014 15:07:05 -0700 Subject: [PATCH] Guarding files_ attribute with #ifndef NDEBUG guard in FilePicker class. Summary: Adding guards to files_ attribute of FilePicker class. This attribute is used only in DEBUG mode. This fixes build of static_lib in mac. Test Plan: make static_lib in mac make check all in devserver Reviewers: ljin, igor, sdong Reviewed By: sdong Differential Revision: https://reviews.facebook.net/D20163 --- db/version_set.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/version_set.cc b/db/version_set.cc index 59ff8e0ba..54baf76e5 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -107,7 +107,9 @@ class FilePicker { curr_level_(-1), search_left_bound_(0), search_right_bound_(FileIndexer::kLevelMaxIndex), +#ifndef NDEBUG files_(files), +#endif file_levels_(file_levels), user_key_(user_key), ikey_(ikey), @@ -216,7 +218,9 @@ class FilePicker { unsigned int curr_level_; int search_left_bound_; int search_right_bound_; +#ifndef NDEBUG std::vector* files_; +#endif autovector* file_levels_; bool search_ended_; FileLevel* curr_file_level_;