Commit b640c590 authored by gabime's avatar gabime

try to prevent optimizer to remove null sink code altogether

parent 1f3dea60
...@@ -22,10 +22,9 @@ protected: ...@@ -22,10 +22,9 @@ protected:
// prevent optimizer to remove this sink altogether (and do useful check while at it). // prevent optimizer to remove this sink altogether (and do useful check while at it).
if(msg.level == level::off) if(msg.level == level::off)
{ {
printf("Should never not be called if level is off!\n"); printf("null_sink: should never not be called if level is off!\n");
abort();
} }
assert(msg.level != level::off);
} }
void flush_() override {} void flush_() override {}
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment