From 16e349b6e9633e88ef20ca0ebbaeba2a2f9e894a Mon Sep 17 00:00:00 2001 From: Debian LibreOffice Maintainers Date: Fri, 28 Jul 2017 00:16:27 +0100 Subject: [PATCH] rsc-no-error-about-unknown-switch Gbp-Pq: Name rsc-no-error-about-unknown-switch.diff --- rsc/source/parser/erscerr.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rsc/source/parser/erscerr.cxx b/rsc/source/parser/erscerr.cxx index ce67dfd9c60..3f2af832708 100644 --- a/rsc/source/parser/erscerr.cxx +++ b/rsc/source/parser/erscerr.cxx @@ -389,7 +389,7 @@ void RscError::Error( const ERRTYPE& rError, RscTop * pClass, void RscError::FatalError( const ERRTYPE& rError, const RscId &aId, const char * pMessage ) { - if( ERR_USAGE != rError.GetError() ){ + if( ERR_USAGE != rError.GetError() && ERR_UNKNOWNSW != rError.GetError() ){ nErrors++; ErrorFormat( rError, nullptr, aId ); WriteError( rError, pMessage ); @@ -398,7 +398,8 @@ void RscError::FatalError( const ERRTYPE& rError, const RscId &aId, else WriteError( rError, pMessage ); - exit( 1 ); + if( ERR_UNKNOWNSW != rError.GetError() ) + exit( 1 ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- 2.30.2