From c7783a7429727a54049d6ea2a2ba24ebe5de0501 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Mon, 2 Dec 2019 10:17:57 -0800 Subject: [PATCH] IntelliSense --- cppwinrt/component_writers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cppwinrt/component_writers.h b/cppwinrt/component_writers.h index 7c026faa7..9852f24ae 100644 --- a/cppwinrt/component_writers.h +++ b/cppwinrt/component_writers.h @@ -609,7 +609,7 @@ catch (...) { return winrt::to_hresult(); } auto format = R"( %_base(%) { - impl::call_factory<%, %>([&](% const& f) { f.%(%%*this, this->m_inner); }); + impl::call_factory<%, %>([&](% const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.%(%%*this, this->m_inner); }); } )";