diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 01:33:36 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 02:01:44 +0300 |
commit | 44e22417bf7eb1f317de5392e74349c56dda1679 (patch) | |
tree | 70d3cddeb5933b5fa52a7d690c10fe2aa877b51a /include/pdb/workarounds.hpp | |
parent | silence DbgHelp warnings on VS 2015 (diff) | |
download | winapi-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/workarounds.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pdb/workarounds.hpp b/include/pdb/workarounds.hpp new file mode 100644 index 0000000..00bd5c5 --- /dev/null +++ b/include/pdb/workarounds.hpp @@ -0,0 +1,8 @@ +// Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com> +// This file is part of the "PDB repository" project. +// For details, see https://github.com/egor-tensin/pdb-repo. +// Distributed under the MIT License. + +#pragma once + +#define PDB_UNUSED_PARAMETER(...) (void)(__VA_ARGS__) |