Commit a82d0e2f authored by gabime's avatar gabime

try to prevent optimizer to remove null sink code altogether

parent dca1d1e0
......@@ -17,7 +17,7 @@ template<typename Mutex>
class null_sink : public base_sink<Mutex>
{
protected:
void sink_it_(const details::log_msg &msg) override
void sink_it_(const details::log_msg &) override
{
// prevent optimizer to remove this sink altogether (and do useful check while at it).
if(this->level() == level::off)
......
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