]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/newstore: fix swarning 5748/head
authorSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:59:40 +0000 (13:59 -0400)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:59:40 +0000 (13:59 -0400)
commitc13bb7aa48ec936c200727cc88f2892036326b77
treede4133a545614f8452af31fbdf285ff90a717756
parent37462359a3176185f25ebb7178274ecedbc30a6d
os/newstore: fix swarning

os/newstore/NewStore.cc: In member function 'int NewStore::_zero(NewStore::TransContext*, NewStore::CollectionRef&, const ghobject_t&, uint64_t, size_t)':
os/newstore/NewStore.cc:3693:32: warning: ignoring return value of 'int ftruncate(int, __off64_t)', declared with attribute warn_unused_result [-Wunused-result]
       ::ftruncate(fd, f.length);
                                ^

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/newstore/NewStore.cc