aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2020-08-07 19:42:34 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2020-08-07 19:42:34 +0000
commit7eb70a453b4ea797d9e85017c6deab6a7bc903a6 (patch)
tree265282027801e799b9a4a3afba074c868689b49e /input.c
parentMerge branch 'syslog' into master (diff)
Replace GCC "unused" and "format" attributes with portable macros
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input.c b/input.c
index 645fa4b3..9c94e2ba 100644
--- a/input.c
+++ b/input.c
@@ -26,6 +26,7 @@
#include "config.h"
#include "commands.h"
#include "keymap.h"
+#include "macros.h"
#include "quirks.h"
#include "render.h"
#include "search.h"
@@ -1116,8 +1117,7 @@ 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 __attribute__((unused))
- = wl_surface_get_user_data(surface);
+ const struct wl_window UNUSED *win = wl_surface_get_user_data(surface);
assert(old_moused == win->term);
}