summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-09-16 10:24:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-09-16 13:10:54 +0200
commitbdcf58bdb178402bad25ea1459af3611648eb196 (patch)
treea3db1821a713dc404bbd0b2dd85a71f53b7962cd /sal
parent9176441f1cc21f7e5d07808b3dd86b726a645e84 (diff)
-Werror=volatile (GCC 10 trunk)
"error: compound assignment with ‘volatile’-qualified left operand is deprecated" in C++20 mode Change-Id: I62825237a2f4caf359f5f116ab4097ae6b9376e6 Reviewed-on: https://gerrit.libreoffice.org/78975 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
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 e961c36c7662..39d9d16334c7 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -1181,13 +1181,13 @@ oslFileError SAL_CALL osl_mapFile(
volatile sal_uInt8 c = 0;
while (nSize > nPageSize)
{
- c ^= pData[0];
+ c = c ^ pData[0];
pData += nPageSize;
nSize -= nPageSize;
}
if (nSize > 0)
- c^= pData[0];
+ c = c ^ pData[0];
}
}