From ee669c346555547be84d544f34c9316e8b9e355a Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 3 Mar 2020 23:47:27 +0800 Subject: ... --- include/cru/common/logger.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/cru/common/logger.hpp') diff --git a/include/cru/common/logger.hpp b/include/cru/common/logger.hpp index 35b16940..b947ba99 100644 --- a/include/cru/common/logger.hpp +++ b/include/cru/common/logger.hpp @@ -87,12 +87,11 @@ class Logger : public Object { }; template -void Debug(const std::string_view& format, TArgs&&... args) { +void Debug([[maybe_unused]] const std::string_view& format, + [[maybe_unused]] TArgs&&... args) { #ifdef CRU_DEBUG Logger::GetInstance()->Log( LogLevel::Debug, util::Format(format, std::forward(args)...)); -#else - CRU_UNUSED(format) #endif } -- cgit v1.2.3