diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-05-13 15:46:36 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-05-13 21:25:53 +0200 |
commit | 3300111c7e8d5f5ffa15b8814d0f6597fae923ec (patch) | |
tree | b23fe8ef07843584d28972c34764ae87c2e40708 | |
parent | 037c9671492eb0bbb33b187dc08a43f687db8b63 (diff) |
Avoid -Werror=unused-variable with --disable-assert-always-abort
...as reported by e.g.
<https://ci.libreoffice.org/job/lo_tb_random_config_linux/2228/>
Change-Id: If6bc1105fd723f78dbcb36616371a823ee665611
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94132
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | vcl/skia/salbmp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx index fa88cac5ac87..d48e67c4e904 100644 --- a/vcl/skia/salbmp.cxx +++ b/vcl/skia/salbmp.cxx @@ -841,8 +841,8 @@ void SkiaSalBitmap::verify() const if (!mBuffer) return; // Use mPixelsSize, that describes the size of the actual data. - size_t canary = mScanlineSize * mPixelsSize.Height(); - assert(memcmp(mBuffer.get() + canary, CANARY, sizeof(CANARY)) == 0); + assert(memcmp(mBuffer.get() + mScanlineSize * mPixelsSize.Height(), CANARY, sizeof(CANARY)) + == 0); } #endif |