unit-allocator.cpp: Silence compiler warning on MSVC 2015
This commit is contained in:
parent
e2889e3138
commit
077122629c
@ -114,6 +114,7 @@ struct my_allocator : std::allocator<T>
|
|||||||
{
|
{
|
||||||
if (next_destroy_fails)
|
if (next_destroy_fails)
|
||||||
{
|
{
|
||||||
|
(void)p; // Ignored unused
|
||||||
next_destroy_fails = false;
|
next_destroy_fails = false;
|
||||||
throw std::bad_alloc();
|
throw std::bad_alloc();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -817,7 +817,9 @@ class Evil
|
|||||||
public:
|
public:
|
||||||
Evil() = default;
|
Evil() = default;
|
||||||
template <typename T>
|
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;
|
int m_i = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user