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

Stephan Bergmann sbergman at redhat.com
Fri Feb 2 13:10:17 UTC 2018


 sdext/source/pdfimport/pdfparse/pdfparse.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 21eba05f5f7090dc58a6920486cc1cf7ead3fd44
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Feb 2 14:08:45 2018 +0100

    Blind fix for MSVC warning C4101: 'rError': unreferenced local variable
    
    ...after 4e102d6a4b483098e80ca86e19ee8576ae5356f1 "sdext: MSVC: pragma warning:
    make more specific, remove obsolete"
    
    Change-Id: Ibd198ef24aa67c4c98bc1f504deccb1fdf28d054

diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
index 1ce4c366a408..e5350d26745d 100644
--- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx
+++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
@@ -558,6 +558,8 @@ PDFEntry* PDFReader::read( const char* pBuffer, unsigned int nLen )
             aTmp += "   " + OString(typeid( *(aGrammar.m_aObjectStack[i]) ).name());
 
         SAL_WARN("sdext.pdfimport.pdfparse", "parse error: " << rError.descriptor << " at buffer pos " << rError.where - pBuffer << ", object stack: " << aTmp);
+#else
+        (void)rError;
 #endif
     }
 


More information about the Libreoffice-commits mailing list