From 6433373f93a36ddad509df5702ef691e0635ab5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 7 Jul 2020 14:06:29 +0200 Subject: [PATCH] module/i3-common: fix compilation warning with asan --- modules/i3-common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/i3-common.c b/modules/i3-common.c index 8f7d2d9..589bfb8 100644 --- a/modules/i3-common.c +++ b/modules/i3-common.c @@ -296,9 +296,11 @@ i3_receive_loop(int abort_fd, int sock, break; /* Sway extensions */ - case ((1<<31) | 21): /* IPC_EVENT_INPUT */ +#define SWAY_IPC_EVENT_INPUT ((1u << 31) | 21) + case SWAY_IPC_EVENT_INPUT: pkt_handler = cbs->event_input; break; +#undef SWAY_IPC_EVENT_INPUT default: LOG_ERR("unimplemented IPC reply type: %d", hdr->type);