summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-06-19 11:35:00 +0300
committerTor Lillqvist <tml@iki.fi>2013-06-19 15:56:08 +0300
commita1936e4183240981af0bf616207994e3a2f7929e (patch)
tree0ca80d7df603fe0d86a4d79ecf66bea39a8dcf96 /sal
parentFix warning: Value stored to 'eEncoding' is never read (diff)
downloadcore-a1936e4183240981af0bf616207994e3a2f7929e.tar.gz
core-a1936e4183240981af0bf616207994e3a2f7929e.zip
Fix warning: Value stored is never read
Change-Id: Ic41fe1682f19c39faa0a2afc47c11b8a5bead212
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 7a991e806900..4e646b09614b 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -461,7 +461,7 @@ oslFileError FileHandle_Impl::readFileAt (
if (result != osl_File_E_None)
return (result);
- nBytesRequested -= uDone, *pBytesRead += uDone;
+ *pBytesRead += uDone;
return osl_File_E_None;
}
@@ -533,7 +533,7 @@ oslFileError FileHandle_Impl::writeFileAt (
if (uDone != nBytesToWrite)
return osl_File_E_IO;
- nBytesToWrite -= uDone, *pBytesWritten += uDone;
+ *pBytesWritten += uDone;
return osl_File_E_None;
}