From: xie xingguo Date: Thu, 14 Jan 2016 06:43:59 +0000 (+0800) Subject: BlueStore: kill warnings X-Git-Tag: v10.0.3~42^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d3395549e8273922b3f30856d3b4540ef8c27413;p=ceph.git BlueStore: kill warnings Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index e2d41ba937d3..ee4711b66e8a 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -705,7 +705,7 @@ int BlueFS::_read( left = buf->get_buf_remaining(off); dout(20) << __func__ << " left " << left << " len " << len << dendl; - int r = MIN(len, left); + int r = MIN((int)len, left); if (outbl) { bufferlist t; t.substr_of(buf->bl, off - buf->bl_off, r); diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 8c0b71637baf..d51a1c0ebf83 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -4054,7 +4054,6 @@ int BlueStore::_txc_add_transaction(TransContext *txc, Transaction *t) case Transaction::OP_COLL_HINT: { - coll_t cid = i.get_cid(op->cid); uint32_t type = op->hint_type; bufferlist hint; i.decode_bl(hint); diff --git a/src/os/kstore/KStore.cc b/src/os/kstore/KStore.cc index 9490751f72d9..bb4305a71edf 100644 --- a/src/os/kstore/KStore.cc +++ b/src/os/kstore/KStore.cc @@ -2589,7 +2589,6 @@ int KStore::_txc_add_transaction(TransContext *txc, Transaction *t) case Transaction::OP_COLL_HINT: { - coll_t cid = i.get_cid(op->cid); uint32_t type = op->hint_type; bufferlist hint; i.decode_bl(hint);