log: mitigate unused variable in release

This commit is contained in:
Danny Robson 2015-01-21 23:37:15 +11:00
parent 91ecc49d68
commit ee455e1ae7

View File

@ -37,7 +37,10 @@ using std::map;
void void
check_level (level_t l) check_level (level_t l)
{ CHECK (l >= 0 && l < NUM_LEVELS); } {
(void)l; // Consume even in release mode
CHECK (l >= 0 && l < NUM_LEVELS);
}
const string& const string&
level_to_string (level_t l) { level_to_string (level_t l) {