[Libreoffice-commits] core.git: unoidl/source
Stephan Bergmann
sbergman at redhat.com
Wed Nov 27 00:01:01 PST 2013
unoidl/source/sourceprovider-parser.y | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 766cdc8a603b17710f8c60558c07e4b64cdda54b
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Nov 27 09:00:39 2013 +0100
Silence false "may be used uninitialized" warnings
Change-Id: Ie708de4a7fbd34e1ab3c417688de79d5bdf0e0b8
diff --git a/unoidl/source/sourceprovider-parser.y b/unoidl/source/sourceprovider-parser.y
index 77fcd7e..15bb011 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()) {
More information about the Libreoffice-commits
mailing list