Fix clang compile error

main
Yueh-Hsuan Chiang 10 years ago
parent d0c5f28a5c
commit 7165d18869
  1. 4
      util/thread_status_impl.cc

@ -129,7 +129,7 @@ void ThreadStatusImpl::EraseColumnFamilyInfo(const void* cf_key) {
// 2. Remove it from the set.
auto db_pair = db_key_map_.find(cf_info->db_key);
assert(db_pair != db_key_map_.end());
int result __attribute__((unused)) = db_pair->second.erase(cf_key);
size_t result __attribute__((unused)) = db_pair->second.erase(cf_key);
assert(result);
delete cf_info;
@ -146,7 +146,7 @@ void ThreadStatusImpl::EraseDatabaseInfo(const void* db_key) {
return;
}
int result __attribute__((unused)) = 0;
size_t result __attribute__((unused)) = 0;
for (auto cf_key : db_pair->second) {
auto cf_pair = cf_info_map_.find(cf_key);
assert(cf_pair != cf_info_map_.end());

Loading…
Cancel
Save