diff options
author | crupest <crupest@outlook.com> | 2020-03-03 23:47:27 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-03 23:47:27 +0800 |
commit | ee669c346555547be84d544f34c9316e8b9e355a (patch) | |
tree | 6ff169594d2494cbc0bbe94023ad2a858cb06437 | |
parent | 0dcf8e686b93cca54a424affe0455d0a97d6c2ef (diff) | |
download | cru-ee669c346555547be84d544f34c9316e8b9e355a.tar.gz cru-ee669c346555547be84d544f34c9316e8b9e355a.tar.bz2 cru-ee669c346555547be84d544f34c9316e8b9e355a.zip |
...
-rw-r--r-- | include/cru/common/logger.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 <typename... TArgs> -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<TArgs>(args)...)); -#else - CRU_UNUSED(format) #endif } |