]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/filestore: fix a -Wunused-label warning in compiling. 8366/head
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Wed, 30 Mar 2016 02:51:31 +0000 (22:51 -0400)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Thu, 31 Mar 2016 04:08:21 +0000 (00:08 -0400)
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 <dongsheng.yang@easystack.cn>
src/os/filestore/FileStore.cc

index 6677c86dc4b95147cd47db2cf4ed52e527b8fdb9..97b952ef67dad8817d50b72d78f29c1761af3d55 100644 (file)
@@ -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;
 }