log: mitigate unused variable in release
This commit is contained in:
parent
91ecc49d68
commit
ee455e1ae7
5
log.cpp
5
log.cpp
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user