summaryrefslogtreecommitdiff
path: root/vcl/skia/x11/gdiimpl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-03-16 16:21:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-03-16 21:09:54 +0100
commita20e0ae4e346dae93bacf25deff2e7fbcbf1dbe1 (patch)
tree6e5809ad08730a9a37caa33a24955710d71323b7 /vcl/skia/x11/gdiimpl.cxx
parentfe407fa6ff9cb7597f06e891ea3f136cd9521ef1 (diff)
-Werror=unused-but-set-variable
(with --disable-assert-always-abort --enable-dbgutil, <https://ci.libreoffice.org//job/lo_tb_random_config_linux/3741/>) Change-Id: I46c4ed35e1882a98bde4022681624ae6c94031b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131664 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/skia/x11/gdiimpl.cxx')
-rw-r--r--vcl/skia/x11/gdiimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/skia/x11/gdiimpl.cxx b/vcl/skia/x11/gdiimpl.cxx
index fa0f81176a5d..6a7cce14dd3f 100644
--- a/vcl/skia/x11/gdiimpl.cxx
+++ b/vcl/skia/x11/gdiimpl.cxx
@@ -84,7 +84,7 @@ X11SkiaSalGraphicsImpl::createWindowContext(Display* display, Drawable drawable,
assert(winInfo.fVisualInfo->visual != nullptr); // make sure it's not an uninitialized SalVisual
winInfo.fWidth = width;
winInfo.fHeight = height;
-#ifdef DBG_UTIL
+#if defined DBG_UTIL && !defined NDEBUG
// Our patched Skia has VulkanWindowContext that shares grDirectContext, which requires
// that the X11 visual is always the same. Ensure it is so.
static VisualID checkVisualID = -1U;