From db4c739d4b108ccede4b78acf9cd10fec20f859f Mon Sep 17 00:00:00 2001 From: Jean Date: Sun, 22 Dec 2024 19:32:21 +0100 Subject: [PATCH] Fix [Core]: Removed warnings from parameters in FlAssert being unused when building in release mode. --- Include/FlashlightEngine/Core/CoreUtils.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/FlashlightEngine/Core/CoreUtils.inl b/Include/FlashlightEngine/Core/CoreUtils.inl index 94e8666..1eeb408 100644 --- a/Include/FlashlightEngine/Core/CoreUtils.inl +++ b/Include/FlashlightEngine/Core/CoreUtils.inl @@ -23,7 +23,7 @@ namespace FlashlightEngine { #else template - constexpr void FlAssert(T expr, const std::string& msg, const std::source_location& location) {} + constexpr void FlAssert([[maybe_unused]] T expr, [[maybe_unused]] const std::string& msg, [[maybe_unused]] const std::source_location& location) {} #endif template