From bdcf58bdb178402bad25ea1459af3611648eb196 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 16 Sep 2019 10:24:11 +0200 Subject: -Werror=volatile (GCC 10 trunk) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "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 --- sal/osl/unx/file.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal') 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]; } } -- cgit