aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/handle.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 01:33:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 02:01:44 +0300
commit44e22417bf7eb1f317de5392e74349c56dda1679 (patch)
tree70d3cddeb5933b5fa52a7d690c10fe2aa877b51a /include/pdb/handle.hpp
parentsilence DbgHelp warnings on VS 2015 (diff)
downloadwinapi-debug-44e22417bf7eb1f317de5392e74349c56dda1679.tar.gz
winapi-debug-44e22417bf7eb1f317de5392e74349c56dda1679.zip
mingw builds: implement proper unused parameter macro
The UNREFERENCED_PARAMETER macro distributed with MinGW-w64 is stupid (`(x) = (x)`, really?)
Diffstat (limited to '')
-rw-r--r--include/pdb/handle.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/pdb/handle.hpp b/include/pdb/handle.hpp
index 7c0cc40..511ef90 100644
--- a/include/pdb/handle.hpp
+++ b/include/pdb/handle.hpp
@@ -5,6 +5,8 @@
#pragma once
+#include "workarounds.hpp"
+
#include <Windows.h>
#include <cassert>
@@ -18,7 +20,7 @@ struct CloseHandle {
return;
const auto ret = ::CloseHandle(raw);
assert(ret);
- UNREFERENCED_PARAMETER(ret);
+ PDB_UNUSED_PARAMETER(ret);
}
};