Kaydet (Commit) 766cdc8a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Silence false "may be used uninitialized" warnings

Change-Id: Ie708de4a7fbd34e1ab3c417688de79d5bdf0e0b8
üst eda84099
......@@ -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()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment