aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-15 14:57:03 +0200
committerStefan Boberg <[email protected]>2021-09-15 14:57:19 +0200
commit02ab6e97cf6de3f21283f766a6f585d14965867c (patch)
tree3c2b92198b330f9683f9b9a791f1a8839b9f4a25
parentHandle absence of std::source_location somewhat more gracefully (relies on cl... (diff)
downloadzen-02ab6e97cf6de3f21283f766a6f585d14965867c.tar.xz
zen-02ab6e97cf6de3f21283f766a6f585d14965867c.zip
Unused variable warning fix
-rw-r--r--zencore/filesystem.cpp2
-rw-r--r--zencore/uid.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index 329cc241d..59300b7ad 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -617,6 +617,8 @@ PathFromHandle(void* NativeHandle)
const DWORD FinalLength = GetFinalPathNameByHandleW(NativeHandle, FullPath.data(), RequiredLengthIncludingNul, FILE_NAME_OPENED);
+ ZEN_UNUSED(FinalLength);
+
return FullPath;
}
diff --git a/zencore/uid.cpp b/zencore/uid.cpp
index 644d0aa77..acf9f9790 100644
--- a/zencore/uid.cpp
+++ b/zencore/uid.cpp
@@ -100,6 +100,7 @@ TEST_CASE("Oid")
SUBCASE("Basic")
{
Oid id1 = Oid::NewOid();
+ ZEN_UNUSED(id1);
std::vector<Oid> ids;
std::set<Oid> idset;