diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-21 14:25:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-21 16:02:28 +0000 |
commit | 5a610d1f15f494135f093f1d7644d58f189be9ad (patch) | |
tree | 70ce2ddb6198b4f48515d9cace487e7d0451ae9d /unoidl/source/sourceprovider-parser.y | |
parent | 5a61fa1c9ee33e4616ec7277ecf2b3110c0e4589 (diff) |
quieten the clang fallthrough warnings
Change-Id: I73f068971a6908153d887e34425076e6194c657d
Diffstat (limited to 'unoidl/source/sourceprovider-parser.y')
-rw-r--r-- | unoidl/source/sourceprovider-parser.y | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/unoidl/source/sourceprovider-parser.y b/unoidl/source/sourceprovider-parser.y index 332df8947a1c..518f1c5dae99 100644 --- a/unoidl/source/sourceprovider-parser.y +++ b/unoidl/source/sourceprovider-parser.y @@ -334,7 +334,7 @@ Found findEntity( break; } assert(e->entity.is()); - // fall through + SAL_FALLTHROUGH; case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL: if (e->entity->getSort() == unoidl::Entity::SORT_TYPEDEF) { if (typedefed != nullptr) { @@ -449,7 +449,7 @@ Found findEntity( return FOUND_ERROR; } assert(e->entity.is()); - // fall through + SAL_FALLTHROUGH; case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL: switch (e->entity->getSort()) { case unoidl::Entity::SORT_ENUM_TYPE: @@ -679,7 +679,7 @@ Found findEntity( break; } assert(e->entity.is()); - // fall through + SAL_FALLTHROUGH; case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL: switch (e->entity->getSort()) { case unoidl::Entity::SORT_ENUM_TYPE: @@ -745,7 +745,7 @@ Found findEntity( return FOUND_ERROR; } assert(e->entity.is()); - // fall through + SAL_FALLTHROUGH; case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL: if (e->entity->getSort() == unoidl::Entity::SORT_POLYMORPHIC_STRUCT_TYPE_TEMPLATE) @@ -776,7 +776,7 @@ Found findEntity( t = unoidl::detail::SourceProviderType(n, e, args); break; } - // fall through + SAL_FALLTHROUGH; case unoidl::detail::SourceProviderEntity::KIND_INTERFACE_DECL: case unoidl::detail::SourceProviderEntity::KIND_PUBLISHED_INTERFACE_DECL: error( @@ -3806,7 +3806,7 @@ type: break; } assert(ent->entity.is()); - // fall through + SAL_FALLTHROUGH; case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL: if (data->publishedContext && ent->entity->getSort() != unoidl::Entity::SORT_MODULE @@ -3853,7 +3853,7 @@ type: break; case unoidl::Entity::SORT_TYPEDEF: assert(false && "this cannot happen"); - // fall through + SAL_FALLTHROUGH; default: break; } @@ -3866,7 +3866,7 @@ type: + " used in published context")); YYERROR; } - // fall through + SAL_FALLTHROUGH; case unoidl::detail::SourceProviderEntity::KIND_PUBLISHED_INTERFACE_DECL: $$ = new unoidl::detail::SourceProviderType( unoidl::detail::SourceProviderType::TYPE_INTERFACE, name, @@ -3918,7 +3918,7 @@ type: break; } assert(ent->entity.is()); - // fall through + SAL_FALLTHROUGH; case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL: if (ent->entity->getSort() == unoidl::Entity::SORT_POLYMORPHIC_STRUCT_TYPE_TEMPLATE) @@ -4445,7 +4445,7 @@ bool parse(OUString const & uri, SourceProviderScannerData * data) { break; default: assert(false); - // fall through + SAL_FALLTHROUGH; case 1: throw FileFormatException( uri, |