Fix clang compile error

This commit is contained in:
Yueh-Hsuan Chiang 2014-11-20 11:00:21 -08:00
parent d0c5f28a5c
commit 7165d18869

View File

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