[Libreoffice-commits] core.git: sax/source

David Ostrovsky david at ostrovsky.org
Mon Feb 20 09:01:20 UTC 2017


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

New commits:
commit 996960f5a25c0833942c03b94356d2137c4d7557
Author: David Ostrovsky <david at ostrovsky.org>
Date:   Fri Feb 17 22:21:08 2017 +0000

    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>

diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 498bd4d..1b0ad53 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -980,7 +980,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