From 25a3da33ee1648fa13408c12564a54eb7c0ee3a7 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Fri, 2 Mar 2018 00:34:53 -0800 Subject: [PATCH] Compiles w/o warnings --- version2/src/C/IoTString.h | 2 +- version2/src/C/SlotIndexer.cc | 2 +- version2/src/C/Table.cc | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/version2/src/C/IoTString.h b/version2/src/C/IoTString.h index bd838bb..2d7a14f 100644 --- a/version2/src/C/IoTString.h +++ b/version2/src/C/IoTString.h @@ -82,7 +82,7 @@ public: friend IoTString *IoTString_shallow(Array *_array); }; -IoTString *IoTString_shallow(Array *_array) { +inline IoTString *IoTString_shallow(Array *_array) { IoTString *str = new IoTString(); str->array = _array; return str; diff --git a/version2/src/C/SlotIndexer.cc b/version2/src/C/SlotIndexer.cc index e3b7fa7..c363318 100644 --- a/version2/src/C/SlotIndexer.cc +++ b/version2/src/C/SlotIndexer.cc @@ -10,8 +10,8 @@ */ SlotIndexer::SlotIndexer(Array *_updates, SlotBuffer *_buffer) : - buffer(_buffer), updates(_updates), + buffer(_buffer), firstslotseqnum(updates->get(0)->getSequenceNumber()) { } diff --git a/version2/src/C/Table.cc b/version2/src/C/Table.cc index d3b7e53..835b9db 100644 --- a/version2/src/C/Table.cc +++ b/version2/src/C/Table.cc @@ -1388,7 +1388,6 @@ void Table::doOptionalRescue(Slot *s, bool seenliveslot, int64_t seqn, bool resi * for SKIP_THRESHOLD consecutive entries*/ int skipcount = 0; int64_t newestseqnum = buffer->getNewestSeqNum(); -search: for (; seqn <= newestseqnum; seqn++) { Slot *prevslot = buffer->getSlot(seqn); //Push slot number forward -- 2.34.1