From 90f3519bc2089c735f2486a559b1bc38f40ef352 Mon Sep 17 00:00:00 2001 From: msieben <4319079+msieben@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:13:13 +0000 Subject: [PATCH] [core/MessageStore] : avoid 'variable not used' compiler warning if TRACE_L1 is NOP --- Source/core/MessageStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/core/MessageStore.cpp b/Source/core/MessageStore.cpp index 50bee1d23..ed5a696cd 100644 --- a/Source/core/MessageStore.cpp +++ b/Source/core/MessageStore.cpp @@ -51,7 +51,7 @@ ENUM_CONVERSION_END(Core::Messaging::Metadata::type) { _adminLock.Lock(); - for_each (_controlList.begin(), _controlList.end(), [](Core::Messaging::IControl* const & control) { + for_each (_controlList.begin(), _controlList.end(), [](VARIABLE_IS_NOT_USED Core::Messaging::IControl* const & control) { TRACE_L1(_T("MessageControl %s, size = %u was not disposed before"), typeid(control).name(), static_cast(_controlList.size())); } );