use a macro to silence compiler warnings

This commit is contained in:
Francis Banyikwa 2016-06-02 09:54:39 +03:00
parent 907cf1d07d
commit c5a6f16cd5
3 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ unique_ref<FsBlobRef> CryDevice::LoadBlob(const bf::path &path) {
} }
void CryDevice::statfs(const bf::path &path, struct statvfs *fsstat) { void CryDevice::statfs(const bf::path &path, struct statvfs *fsstat) {
(void)path; UNUSED(path);
callFsActionCallbacks(); callFsActionCallbacks();
uint64_t numUsedBlocks = _fsBlobStore->numBlocks(); uint64_t numUsedBlocks = _fsBlobStore->numBlocks();
uint64_t numFreeBlocks = _fsBlobStore->estimateSpaceForNumBlocksLeft(); uint64_t numFreeBlocks = _fsBlobStore->estimateSpaceForNumBlocksLeft();

View File

@ -35,7 +35,7 @@ unique_ref<parallelaccessfsblobstore::FileBlobRef> CryFile::LoadBlob() const {
} }
unique_ref<fspp::OpenFile> CryFile::open(int flags) const { unique_ref<fspp::OpenFile> CryFile::open(int flags) const {
(void)flags; UNUSED(flags);
device()->callFsActionCallbacks(); device()->callFsActionCallbacks();
auto blob = LoadBlob(); auto blob = LoadBlob();
return make_unique_ref<CryOpenFile>(device(), parent(), std::move(blob)); return make_unique_ref<CryOpenFile>(device(), parent(), std::move(blob));

View File

@ -40,7 +40,7 @@ CryNode::~CryNode() {
} }
void CryNode::access(int mask) const { void CryNode::access(int mask) const {
(void)mask; UNUSED(mask);
device()->callFsActionCallbacks(); device()->callFsActionCallbacks();
//TODO //TODO
return; return;