diff options
author | Daniel Neus <[email protected]> | 2016-07-05 11:53:31 +0200 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-07-05 12:28:31 +0200 |
commit | 28c97bc2d8a9f7b57294643eb31d5d91199fbe8d (patch) | |
tree | 2d33b8ac7d0e0f221613647848f15717ab921eca /src/lib/base/secmem.h | |
parent | 0414a4f46c090e3e61d2f26d27bf5979f6d80ba9 (diff) |
prevent massive amount of MSVC C4100 warnings
Diffstat (limited to 'src/lib/base/secmem.h')
-rw-r--r-- | src/lib/base/secmem.h | 5 |
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 |