debug: silence unused variable warnings in release

This commit is contained in:
Danny Robson 2015-04-30 17:31:19 +10:00
parent 7df74064dc
commit 928a499122

View File

@ -322,7 +322,10 @@ namespace debug {
template <typename T>
void sanity (const T &t)
{ CHECK (valid (t)); }
{
(void)t;
CHECK (valid (t));
}
template <
@ -330,7 +333,10 @@ namespace debug {
typename ...Args
>
void sanity (const T<Args...> &t)
{ CHECK (valid (t)); }
{
(void)t;
CHECK (valid (t));
}
}