diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-02-01 12:01:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-02-01 13:12:57 +0100 |
commit | 9808486a89c6368f836579f8d8c0dda63fd0063c (patch) | |
tree | 0c5ec40ae8d51c6f051e1fe2afd2781af9748e71 /test | |
parent | cd520894e7092349f1a7aad07066376bb28571fc (diff) |
Avoid -Werror,-Wimplicit-fallthrough with clang-cl
...where CPPUNIT_FAIL is marked as noreturn only for __GNUC__
Change-Id: Id820b00d8dfe1218a10cd586d32cc20eb6a003de
Reviewed-on: https://gerrit.libreoffice.org/67244
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/xmltesttools.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx index 00d156c40ecf..b104599f4b9d 100644 --- a/test/source/xmltesttools.cxx +++ b/test/source/xmltesttools.cxx @@ -11,6 +11,7 @@ #include <memory> +#include <o3tl/unreachable.hxx> #include <vcl/mtfxmldump.hxx> namespace { @@ -96,6 +97,7 @@ OUString XmlTestTools::getXPathContent(xmlDocPtr pXmlDoc, const OString& rXPath) { case XPATH_UNDEFINED: CPPUNIT_FAIL("Undefined XPath type"); + O3TL_UNREACHABLE; case XPATH_NODESET: { xmlNodeSetPtr pXmlNodes = pXmlObj->nodesetval; |