From 43e27a88434756d6de44a2dde4dbd342ccb387f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 24 Jan 2024 19:59:30 +0100 Subject: [PATCH] wayland: 'mode' is unused when LOG_ENABLE_DBG is not set --- wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wayland.c b/wayland.c index 24d70235..25037c8a 100644 --- a/wayland.c +++ b/wayland.c @@ -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 "