From 4440be60e43183b1761fbec38c09665b237fb01e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 9 Feb 2021 16:22:53 +0100 Subject: Silence -Werror,-Wunused-variable (clang-cl) Change-Id: Ic023076a8673144cb2cf4e5a36d44d592900682e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110642 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- embedserv/source/embed/servprov.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embedserv/source/embed') diff --git a/embedserv/source/embed/servprov.cxx b/embedserv/source/embed/servprov.cxx index ef8004a3ce02..8a1efd5152a5 100644 --- a/embedserv/source/embed/servprov.cxx +++ b/embedserv/source/embed/servprov.cxx @@ -45,7 +45,7 @@ const GUID* const guidList[ SUPPORTED_FACTORIES_NUM ] = { static void o2u_attachCurrentThread() { - static thread_local bool aInit = [] + [[maybe_unused]] static thread_local bool aInit = [] { HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED); if (!SUCCEEDED(hr)) -- cgit