summaryrefslogtreecommitdiff
path: root/embedserv/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-02-09 16:22:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-02-09 17:50:56 +0100
commit4440be60e43183b1761fbec38c09665b237fb01e (patch)
tree32c8f4aaa86b4669c30bc90e621f22ba6ff933e3 /embedserv/source
parent2bf3e0d00e3bccb5b250642ee0d3fdbe6cae8ecc (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'embedserv/source')
-rw-r--r--embedserv/source/embed/servprov.cxx2
1 files changed, 1 insertions, 1 deletions
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))