Massage code to avoid warnings

Change-Id: I112f5e7c845184b9aa5285ecfa40b5bbb34ffde1
This commit is contained in:
Stephan Bergmann
2016-05-12 14:11:38 +02:00
parent a17f715102
commit f7b3cef45b
2 changed files with 6 additions and 8 deletions

View File

@@ -206,9 +206,6 @@ void checkMap(
std::exit(EXIT_FAILURE);
}
switch (entA->getSort()) {
case unoidl::Entity::SORT_MODULE:
assert(false && "this cannot happen");
//deliberate fall-through anyway
case unoidl::Entity::SORT_ENUM_TYPE:
{
rtl::Reference<unoidl::EnumTypeEntity> ent2A(
@@ -886,6 +883,8 @@ void checkMap(
}
break;
}
case unoidl::Entity::SORT_MODULE:
assert(false && "this cannot happen");
}
}
}

View File

@@ -243,8 +243,6 @@ void scanMap(
->isPublished())))))
.first);
switch (ent->getSort()) {
case unoidl::Entity::SORT_MODULE:
assert(false && "this cannot happen");
case unoidl::Entity::SORT_ENUM_TYPE:
case unoidl::Entity::SORT_CONSTANT_GROUP:
break;
@@ -365,6 +363,8 @@ void scanMap(
insertEntityDependency(manager, i, ent2->getBase());
break;
}
case unoidl::Entity::SORT_MODULE:
assert(false && "this cannot happen");
}
}
}
@@ -575,9 +575,6 @@ void writeEntity(
rtl::Reference<unoidl::PublishableEntity> ent(
static_cast<unoidl::PublishableEntity *>(i->second.entity.get()));
switch (ent->getSort()) {
case unoidl::Entity::SORT_MODULE:
assert(false && "this cannot happen");
//deliberate fall-through anyway
case unoidl::Entity::SORT_ENUM_TYPE:
{
rtl::Reference<unoidl::EnumTypeEntity> ent2(
@@ -1010,6 +1007,8 @@ void writeEntity(
std::cout << "; };";
break;
}
case unoidl::Entity::SORT_MODULE:
assert(false && "this cannot happen");
}
}
}