diff --git a/utilities/write_batch_with_index/write_batch_with_index.cc b/utilities/write_batch_with_index/write_batch_with_index.cc index 67a369c8b..83b07f4db 100644 --- a/utilities/write_batch_with_index/write_batch_with_index.cc +++ b/utilities/write_batch_with_index/write_batch_with_index.cc @@ -459,8 +459,8 @@ void WriteBatchWithIndex::Rep::AddNewEntry(uint32_t column_family_id) { wb_data.size() - last_entry_offset); // Extract key Slice key; - bool success = - ReadKeyFromWriteBatchEntry(&entry_ptr, &key, column_family_id != 0); + bool success __attribute__((__unused__)) = + ReadKeyFromWriteBatchEntry(&entry_ptr, &key, column_family_id != 0); assert(success); auto* mem = arena.Allocate(sizeof(WriteBatchIndexEntry));