[Libreoffice-commits] core.git: Branch 'feature/cib_contract57b' - sax/source

David Ostrovsky (via logerrit) logerrit at kemper.freedesktop.org
Wed May 8 09:30:12 UTC 2019


 sax/source/fastparser/fastparser.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e11c790d3a8535bf8e0c2d43533106f1ba1081ab
Author:     David Ostrovsky <david at ostrovsky.org>
AuthorDate: Fri Feb 17 22:21:08 2017 +0000
Commit:     Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Wed May 8 11:23:08 2019 +0200

    MSVC 14.0: Fix warning C4702: unreachable code
    
    Change-Id: I38db92984daae40981f2d3f60c4efa38684d5328
    Reviewed-on: https://gerrit.libreoffice.org/34382
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: David Ostrovsky <david at ostrovsky.org>
    (cherry picked from commit 996960f5a25c0833942c03b94356d2137c4d7557)

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;


More information about the Libreoffice-commits mailing list