diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-12 14:14:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-12 14:15:27 +0200 |
commit | 0dc02bb9618e9852c5b3326a678910283922ffd7 (patch) | |
tree | e2507c668dfff1417e01f3c1f6bbe1f8e276af97 /codemaker/source/javamaker | |
parent | Convert DA flags to scoped enum (diff) | |
download | core-0dc02bb9618e9852c5b3326a678910283922ffd7.tar.gz core-0dc02bb9618e9852c5b3326a678910283922ffd7.zip |
Silence -Werror,-Wimplicit-fallthrough under NDEBUG
Change-Id: I6abfef139197379f04e1a9df80e974c5d4021890
Diffstat (limited to 'codemaker/source/javamaker')
-rw-r--r-- | codemaker/source/javamaker/javatype.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/codemaker/source/javamaker/javatype.cxx b/codemaker/source/javamaker/javatype.cxx index c39230a8fcb7..038cd328b7bd 100644 --- a/codemaker/source/javamaker/javatype.cxx +++ b/codemaker/source/javamaker/javatype.cxx @@ -21,6 +21,7 @@ #include <algorithm> #include <cassert> +#include <cstdlib> #include <list> #include <map> #include <memory> @@ -937,8 +938,7 @@ sal_uInt16 addFieldInit( } case codemaker::UnoType::Sort::Sequence: case codemaker::UnoType::Sort::Typedef: - assert(false); // this cannot happen - // fall through + for (;;) std::abort(); // this cannot happen default: throw CannotDumpException( "unexpected entity \"" + fieldType @@ -1241,8 +1241,7 @@ sal_uInt16 addLoadLocal( break; case codemaker::UnoType::Sort::Sequence: case codemaker::UnoType::Sort::Typedef: - assert(false); // this cannot happen - // fall through + for (;;) std::abort(); // this cannot happen default: throw CannotDumpException( "unexpected entity \"" + type @@ -1280,8 +1279,7 @@ sal_uInt16 addLoadLocal( break; case codemaker::UnoType::Sort::Sequence: case codemaker::UnoType::Sort::Typedef: - assert(false); // this cannot happen - // fall through + for (;;) std::abort(); // this cannot happen default: throw CannotDumpException( "unexpected entity \"" + type |