aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/logger.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/common/logger.hpp')
-rw-r--r--include/cru/common/logger.hpp5
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
}