Replace GCC "unused" and "format" attributes with portable macros

This commit is contained in:
Craig Barnes 2020-08-07 20:42:34 +01:00
parent f952d5a305
commit 7eb70a453b
7 changed files with 18 additions and 10 deletions

View file

@ -1032,7 +1032,7 @@ fdm_shutdown(struct fdm *fdm, int fd, int events, void *data)
wayl_win_destroy(term->window);
term->window = NULL;
struct wayland *wayl __attribute__((unused)) = term->wl;
struct wayland *wayl = term->wl;
/*
* Normally we'd get unmapped when we destroy the Wayland