summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2017-02-17 22:21:08 +0000
committerMichael Stahl <Michael.Stahl@cib.de>2019-05-08 11:23:08 +0200
commite11c790d3a8535bf8e0c2d43533106f1ba1081ab (patch)
treebdb17d1aad5712783d17c42fd530abc89be7a8c2
parent0907998f5b962a524bebf859e3f064e6c259234c (diff)
MSVC 14.0: Fix warning C4702: unreachable code
Change-Id: I38db92984daae40981f2d3f60c4efa38684d5328 Reviewed-on: https://gerrit.libreoffice.org/34382 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org> (cherry picked from commit 996960f5a25c0833942c03b94356d2137c4d7557)
-rw-r--r--sax/source/fastparser/fastparser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 88a193eb3732..7494d71aa83e 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -927,7 +927,7 @@ bool FastSaxParserImpl::consume(EventList *pEventList)
return false;
case EXCEPTION:
rEntity.throwException( mxDocumentLocator, false );
- return false;
+ SAL_FALLTHROUGH; // avoid unreachable code warning with some comilers
default:
assert(false);
return false;