summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/osl/w32/file.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx
index 1c219f8f00af..c39c2f16c860 100644
--- a/sal/osl/w32/file.cxx
+++ b/sal/osl/w32/file.cxx
@@ -777,19 +777,18 @@ oslFileError SAL_CALL osl_mapFile(
* Pagein, touching first byte of each memory page.
* Note: volatile disables optimizing the loop away.
*/
- BYTE * pData(static_cast<BYTE*>(*ppAddr));
+ BYTE volatile * pData(static_cast<BYTE*>(*ppAddr));
SIZE_T nSize(nLength);
- volatile BYTE c = 0;
while (nSize > dwPageSize)
{
- c ^= pData[0];
+ pData[0];
pData += dwPageSize;
nSize -= dwPageSize;
}
if (nSize > 0)
{
- c ^= pData[0];
+ pData[0];
}
}
return osl_File_E_None;