aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-19 23:31:13 +0200
committerStefan Boberg <[email protected]>2021-09-19 23:31:13 +0200
commit352aec91f76719492578f36e760a5d268d141010 (patch)
tree26b54791691438417d68c900f15162d6e81940b1
parentImplemented handling of "large" chunks in compact cas scrubbing (diff)
downloadzen-352aec91f76719492578f36e760a5d268d141010.tar.xz
zen-352aec91f76719492578f36e760a5d268d141010.zip
Fixed unused variable warnings exposed by xmake build (unclear why I do not receive them in VS, but likely due to vcpkg versioning)
-rw-r--r--zenstore/CAS.cpp1
-rw-r--r--zenstore/filecas.cpp8
2 files changed, 8 insertions, 1 deletions
diff --git a/zenstore/CAS.cpp b/zenstore/CAS.cpp
index b3ef7a320..a143230d3 100644
--- a/zenstore/CAS.cpp
+++ b/zenstore/CAS.cpp
@@ -28,6 +28,7 @@ namespace zen {
void
ScrubContext::ReportBadChunks(std::span<IoHash> BadChunks)
{
+ ZEN_UNUSED(BadChunks);
}
/**
diff --git a/zenstore/filecas.cpp b/zenstore/filecas.cpp
index 3314beb7e..31991a43e 100644
--- a/zenstore/filecas.cpp
+++ b/zenstore/filecas.cpp
@@ -342,6 +342,8 @@ FileCasStrategy::IterateChunks(std::function<void(const IoHash& Hash, BasicFile&
Visitor(const std::filesystem::path& RootDir) : RootDirectory(RootDir) {}
virtual void VisitFile(const std::filesystem::path& Parent, const std::wstring_view& File, uint64_t FileSize) override
{
+ ZEN_UNUSED(FileSize);
+
std::filesystem::path RelPath = std::filesystem::relative(Parent, RootDirectory);
std::wstring PathString = RelPath.native();
@@ -372,7 +374,11 @@ FileCasStrategy::IterateChunks(std::function<void(const IoHash& Hash, BasicFile&
}
}
- virtual bool VisitDirectory(const std::filesystem::path& Parent, const std::wstring_view& DirectoryName) { return true; }
+ virtual bool VisitDirectory([[maybe_unused]] const std::filesystem::path& Parent,
+ [[maybe_unused]] const std::wstring_view& DirectoryName)
+ {
+ return true;
+ }
const std::filesystem::path& RootDirectory;
std::function<void(const IoHash& Hash, BasicFile& PayloadFile)> Callback;