diff options
Diffstat (limited to 'embedserv/source/embed')
-rw-r--r-- | embedserv/source/embed/servprov.cxx | 2 |
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)) |