From 19cb0d75f742666ebde88267285b314f32b2f8f0 Mon Sep 17 00:00:00 2001 From: Damian Ho Date: Thu, 23 May 2024 19:35:23 -0600 Subject: [PATCH] Mark val as [[maybe_unused]] to remove warnings when compiling in release mode --- lib/logger/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logger/logger.h b/lib/logger/logger.h index 142da9a..90fbc4e 100644 --- a/lib/logger/logger.h +++ b/lib/logger/logger.h @@ -73,7 +73,7 @@ namespace Logger { }; struct debug_logger { template - debug_logger &operator<<(T val) { + debug_logger &operator<<([[maybe_unused]] T val) { #ifdef PRINT_DEBUG std::cout << val; #endif