aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2026-04-06 13:25:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-04-06 13:25:08 +0000
commitecf3b864e461bf6bf5033ac794cc6109013cd816 (patch)
tree430dac1d735ed519554ce4bf16f119b917e18199
parentwayland: shm: included decoded fourcc name when logging shm formats (diff)
wayland: shm: fix debug builds when LOG_ENABLE_DBG == 0
-rw-r--r--wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wayland.c b/wayland.c
index 246a5ceb..f5737c1e 100644
--- a/wayland.c
+++ b/wayland.c
@@ -246,7 +246,7 @@ shm_format(void *data, struct wl_shm *wl_shm, uint32_t format)
case WL_SHM_FORMAT_ABGR16161616: wayl->shm_have_abgr161616 = true; break;
}
-#if defined(_DEBUG)
+#if defined(_DEBUG) && LOG_ENABLE_DBG == 1
bool have_description = false;
const char c4 = (format >> 24) & 0xff;
const char c3 = (format >> 16) & 0xff;