wayland: 'mode' is unused when LOG_ENABLE_DBG is not set

This commit is contained in:
Daniel Eklöf 2024-01-24 19:59:30 +01:00
parent 7e3da3007b
commit 43e27a8843
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2058,7 +2058,7 @@ surface_scale_explicit_width_height(
wp_viewport_set_destination(
surf->viewport, roundf(width / scale), roundf(height / scale));
} else {
const char *mode = term_preferred_buffer_scale(win->term)
const char *mode UNUSED = term_preferred_buffer_scale(win->term)
? "wl_surface.preferred_buffer_scale"
: "legacy mode";
LOG_DBG("scaling by a factor of %.2f using %s "