From f147b160aef1735d34c488353a7d4b875788a7e1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 11 Feb 2020 15:56:21 +0200 Subject: clang-analyzer-deadcode.DeadStores Change-Id: Ifa384933569b27d0d08eb479bb95b799163ae386 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88450 Tested-by: Jenkins Reviewed-by: Noel Grandin --- tools/source/stream/strmunx.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index a0cfd7c09d74..9a55831e26f2 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -279,7 +279,7 @@ sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos) } if ( nPos != STREAM_SEEK_TO_END ) return nPos; - rc = osl_getFilePos( pInstanceData->rHandle, &nNewPos ); + osl_getFilePos( pInstanceData->rHandle, &nNewPos ); return nNewPos; } SetError( SVSTREAM_GENERALERROR ); @@ -438,7 +438,7 @@ void SvFileStream::Open( const OUString& rFilename, StreamMode nOpenMode ) if ( !LockFile() ) // whole file { - rc = osl_closeFile( nHandleTmp ); + osl_closeFile( nHandleTmp ); bIsOpen = false; m_isWritable = false; pInstanceData->rHandle = nullptr; -- cgit