diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-11 20:22:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-12 06:08:48 +0200 |
commit | 986bd8b93b35ad7f2760dfe0576860532daa0e42 (patch) | |
tree | 6cf762ab0ab00548e97a09ac8eeb72cf1d52dabf /cppuhelper | |
parent | e603bbceed095b1e94756c1e7dc0078f657cf864 (diff) |
-Werror,-Wuninitialized (apparently new in Clang 12 trunk)
> cppuhelper/source/typemanager.cxx:1571:47: error: field 'entity_' is uninitialized when used here [-Werror,-Wuninitialized]
> ServiceBasedSingletonDescription_Base(entity_->isPublished()),
> ^
The code was like that ever since it was introduced in
fa559f1c416884015d1d83d0a7ac8803e745d9df "WIP: Experimental new binary type.rdb
format". Odd that that never caused an issue, but the code appears to at least
never be executed during `make check`.
Change-Id: I19fe78162c7c4a9211c380648595df9aa54bf4d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100554
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/typemanager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx index c03780b1e932..8949ea4c9547 100644 --- a/cppuhelper/source/typemanager.cxx +++ b/cppuhelper/source/typemanager.cxx @@ -1568,7 +1568,7 @@ public: rtl::Reference< cppuhelper::TypeManager > const & manager, OUString const & name, rtl::Reference< unoidl::ServiceBasedSingletonEntity > const & entity): - ServiceBasedSingletonDescription_Base(entity_->isPublished()), + ServiceBasedSingletonDescription_Base(entity->isPublished()), manager_(manager), name_(name), entity_(entity) { assert(manager.is()); assert(entity.is()); } |