From fbde18fc024f789488a8ddb760a0adb2edf4413d Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 17 Jul 2019 14:41:18 +0300 Subject: [PATCH] try to prevent optimizer to remove null sink code altogether --- include/spdlog/sinks/null_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/null_sink.h b/include/spdlog/sinks/null_sink.h index 16b33b82..3efac53b 100644 --- a/include/spdlog/sinks/null_sink.h +++ b/include/spdlog/sinks/null_sink.h @@ -22,7 +22,7 @@ protected: // prevent optimizer to remove this sink altogether (and do useful check while at it). if(msg.level == level::off) { - printf("null_sink: should never not be called if level is off!\n"); + printf("null_sink: should never be called if level is off!\n"); abort(); } }