wayland: shm: fix debug builds when LOG_ENABLE_DBG == 0

This commit is contained in:
Daniel Eklöf 2026-04-06 15:25:08 +02:00
parent 48aa5decef
commit ecf3b864e4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;