From 4e57894e8506f27844fc0e6353475a0b61fd7807 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 30 Jun 2023 13:19:32 +0000 Subject: Get rid of some warnings with GCC 10, from Thomas Klausner. --- notify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'notify.c') diff --git a/notify.c b/notify.c index 138fbeb1..aadfd450 100644 --- a/notify.c +++ b/notify.c @@ -194,7 +194,7 @@ notify_add(const char *name, struct cmd_find_state *fs, struct client *c, ne->client = c; ne->session = s; ne->window = w; - ne->pane = (wp != NULL ? wp->id : -1); + ne->pane = (wp != NULL ? (int)wp->id : -1); ne->pbname = (pbname != NULL ? xstrdup(pbname) : NULL); ne->formats = format_create(NULL, NULL, 0, FORMAT_NOJOBS); @@ -241,7 +241,7 @@ notify_hook(struct cmdq_item *item, const char *name) ne.client = cmdq_get_client(item); ne.session = target->s; ne.window = target->w; - ne.pane = (target->wp != NULL ? target->wp->id : -1); + ne.pane = (target->wp != NULL ? (int)target->wp->id : -1); ne.formats = format_create(NULL, NULL, 0, FORMAT_NOJOBS); format_add(ne.formats, "hook", "%s", name); -- cgit v1.2.3