diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-11-27 09:00:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-27 09:00:39 +0100 |
commit | 766cdc8a603b17710f8c60558c07e4b64cdda54b (patch) | |
tree | 6eb47ac89b8d0d8fa3e03bc1710a81f461c1d6fc /unoidl | |
parent | eda840993a0981cdd227743c1dd4bf6b2f785f8b (diff) |
Silence false "may be used uninitialized" warnings
Change-Id: Ie708de4a7fbd34e1ab3c417688de79d5bdf0e0b8
Diffstat (limited to 'unoidl')
-rw-r--r-- | unoidl/source/sourceprovider-parser.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/unoidl/source/sourceprovider-parser.y b/unoidl/source/sourceprovider-parser.y index 77fcd7e7b37c..15bb011bc8c3 100644 --- a/unoidl/source/sourceprovider-parser.y +++ b/unoidl/source/sourceprovider-parser.y @@ -174,7 +174,7 @@ bool coerce( { assert(lhs != 0); assert(rhs != 0); - bool ok; + bool ok = bool(); // avoid warnings switch (lhs->type) { case unoidl::detail::SourceProviderExpr::TYPE_BOOL: ok = rhs->type != unoidl::detail::SourceProviderExpr::TYPE_BOOL; @@ -431,7 +431,10 @@ Found findEntity( + argName)); return FOUND_ERROR; } else { - unoidl::detail::SourceProviderType::Type argT; + unoidl::detail::SourceProviderType::Type + argT + = unoidl::detail::SourceProviderType::Type(); + // avoid warnings switch (argEnt->kind) { case unoidl::detail::SourceProviderEntity::KIND_LOCAL: if (e->pad.is()) { |