From f6be50d99a60b0b78b360d1b9f9842ce45d7c8a7 Mon Sep 17 00:00:00 2001 From: Dongsheng Yang Date: Tue, 29 Mar 2016 22:51:31 -0400 Subject: [PATCH] os/filestore: fix a -Wunused-label warning in compiling. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit os/filestore/FileStore.cc: In member function ‘int FileStore::_zero(const coll_t&, const ghobject_t&, uint64_t, size_t)’: os/filestore/FileStore.cc:3328:2: warning: label ‘out’ defined but not used [-Wunused-label] out: ^ Signed-off-by: Dongsheng Yang --- src/os/filestore/FileStore.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 6677c86dc4b9..97b952ef67da 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -3325,7 +3325,13 @@ int FileStore::_zero(const coll_t& cid, const ghobject_t& oid, uint64_t offset, ret = _write(cid, oid, offset, len, bl); } +#ifdef CEPH_HAVE_FALLOCATE +# if !defined(DARWIN) && !defined(__FreeBSD__) +# ifdef FALLOC_FL_KEEP_SIZE out: +# endif +# endif +#endif dout(20) << "zero " << cid << "/" << oid << " " << offset << "~" << len << " = " << ret << dendl; return ret; } -- 2.47.3