try to prevent optimizer to remove null sink code altogether

This commit is contained in:
gabime 2019-07-17 14:48:44 +03:00
parent dca1d1e0d1
commit a82d0e2f57
1 changed files with 1 additions and 1 deletions

View File

@ -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)