From: Steinar H. Gunderson Date: Mon, 15 Dec 2014 00:53:31 +0000 (+0100) Subject: Fix a warning in binloader. X-Git-Url: https://git.sesse.net/?p=remoteglot-book;a=commitdiff_plain;h=a40e42df4c193ed82217e18652592f6b773b1f18 Fix a warning in binloader. --- diff --git a/binloader.cpp b/binloader.cpp index a030456..115cba6 100644 --- a/binloader.cpp +++ b/binloader.cpp @@ -104,9 +104,10 @@ void write_subshard(const char *basename, ShardData* shard, int bucket) e.bpfen_len != shard->elems[i + 1].bpfen_len || memcmp(e.bpfen, shard->elems[i + 1].bpfen, e.bpfen_len) != 0) { c.SerializeToString(&buf); - mtbl_writer_add(mtbl, + mtbl_res res = mtbl_writer_add(mtbl, (const uint8_t *)e.bpfen, e.bpfen_len, (const uint8_t *)buf.data(), buf.size()); + assert(res == mtbl_res_success); c = Count(); moves.clear(); }