aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/secmem.h
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2016-07-05 11:53:31 +0200
committerDaniel Neus <[email protected]>2016-07-05 12:28:31 +0200
commit28c97bc2d8a9f7b57294643eb31d5d91199fbe8d (patch)
tree2d33b8ac7d0e0f221613647848f15717ab921eca /src/lib/base/secmem.h
parent0414a4f46c090e3e61d2f26d27bf5979f6d80ba9 (diff)
prevent massive amount of MSVC C4100 warnings
Diffstat (limited to 'src/lib/base/secmem.h')
-rw-r--r--src/lib/base/secmem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/base/secmem.h b/src/lib/base/secmem.h
index 63d4e5296..01024a104 100644
--- a/src/lib/base/secmem.h
+++ b/src/lib/base/secmem.h
@@ -82,7 +82,12 @@ class secure_allocator
::new(static_cast<void*>(p)) U(std::forward<Args>(args)...);
}
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable: 4100)
template<typename U> void destroy(U* p) { p->~U(); }
+#pragma warning(pop)
+#endif
};
template<typename T, typename U> inline bool