vcl/skia/x11/gdiimpl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a20e0ae4e346dae93bacf25deff2e7fbcbf1dbe1 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Mar 16 16:21:52 2022 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Wed Mar 16 21:09:54 2022 +0100 -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 <sberg...@redhat.com> 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;