aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/secmem.h
diff options
context:
space:
mode:
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