From c5a6f16cd5fef4aa0830ef15714d10b17b3d820e Mon Sep 17 00:00:00 2001 From: Francis Banyikwa Date: Thu, 2 Jun 2016 09:54:39 +0300 Subject: [PATCH] use a macro to silence compiler warnings --- src/cryfs/filesystem/CryDevice.cpp | 2 +- src/cryfs/filesystem/CryFile.cpp | 2 +- src/cryfs/filesystem/CryNode.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cryfs/filesystem/CryDevice.cpp b/src/cryfs/filesystem/CryDevice.cpp index 4f987937..6e2d606c 100644 --- a/src/cryfs/filesystem/CryDevice.cpp +++ b/src/cryfs/filesystem/CryDevice.cpp @@ -135,7 +135,7 @@ unique_ref CryDevice::LoadBlob(const bf::path &path) { } void CryDevice::statfs(const bf::path &path, struct statvfs *fsstat) { - (void)path; + UNUSED(path); callFsActionCallbacks(); uint64_t numUsedBlocks = _fsBlobStore->numBlocks(); uint64_t numFreeBlocks = _fsBlobStore->estimateSpaceForNumBlocksLeft(); diff --git a/src/cryfs/filesystem/CryFile.cpp b/src/cryfs/filesystem/CryFile.cpp index e97a5407..66c77828 100644 --- a/src/cryfs/filesystem/CryFile.cpp +++ b/src/cryfs/filesystem/CryFile.cpp @@ -35,7 +35,7 @@ unique_ref CryFile::LoadBlob() const { } unique_ref CryFile::open(int flags) const { - (void)flags; + UNUSED(flags); device()->callFsActionCallbacks(); auto blob = LoadBlob(); return make_unique_ref(device(), parent(), std::move(blob)); diff --git a/src/cryfs/filesystem/CryNode.cpp b/src/cryfs/filesystem/CryNode.cpp index 1b723782..8b2b68af 100644 --- a/src/cryfs/filesystem/CryNode.cpp +++ b/src/cryfs/filesystem/CryNode.cpp @@ -40,7 +40,7 @@ CryNode::~CryNode() { } void CryNode::access(int mask) const { - (void)mask; + UNUSED(mask); device()->callFsActionCallbacks(); //TODO return;