[Libreoffice-commits] core.git: embedserv/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 9 16:51:40 UTC 2021
embedserv/source/embed/servprov.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4440be60e43183b1761fbec38c09665b237fb01e
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Feb 9 16:22:53 2021 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Feb 9 17:50:56 2021 +0100
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 at redhat.com>
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))
More information about the Libreoffice-commits
mailing list