From 0ea3bb629b909cd5fb1977bd145178591f4152d9 Mon Sep 17 00:00:00 2001 From: Mohammad Ali Date: Wed, 18 Jan 2023 17:22:49 +0330 Subject: [PATCH] fix callback_sink example, preventing unused parameter error --- example/example.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.cpp b/example/example.cpp index 3853a139..316a22b1 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -142,7 +142,7 @@ void daily_example() void callback_example() { // Create the logger - auto logger = spdlog::callback_logger_mt("custom_callback_logger", [](const spdlog::details::log_msg &msg) { + auto logger = spdlog::callback_logger_mt("custom_callback_logger", [](const spdlog::details::log_msg &/*msg*/) { // do what you need to do with msg }); }