input: fix 'unused variable' warning (release builds)

This commit is contained in:
Daniel Eklöf 2020-02-29 15:29:58 +01:00
parent 73133c10ee
commit 33744ebe63
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -743,7 +743,8 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
} else {
if (surface != NULL) {
/* Sway 1.4 sends this event with a NULL surface when we destroy the window */
const struct wl_window *win = wl_surface_get_user_data(surface);
const struct wl_window *win __attribute__((unused))
= wl_surface_get_user_data(surface);
assert(old_moused == win->term);
}
old_moused->active_surface = TERM_SURF_NONE;