unit-allocator.cpp: Silence compiler warning on MSVC 2015

This commit is contained in:
Thomas Braun 2020-07-07 22:53:34 +02:00
parent e2889e3138
commit 077122629c
2 changed files with 4 additions and 1 deletions

View File

@ -114,6 +114,7 @@ struct my_allocator : std::allocator<T>
{
if (next_destroy_fails)
{
(void)p; // Ignored unused
next_destroy_fails = false;
throw std::bad_alloc();
}

View File

@ -817,7 +817,9 @@ class Evil
public:
Evil() = default;
template <typename T>
Evil(T t) : m_i(sizeof(t)) {}
Evil(T t) : m_i(sizeof(t)) {
(void)t; // Ignored unused
}
int m_i = 0;
};