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. --- cmd-resize-window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd-resize-window.c') diff --git a/cmd-resize-window.c b/cmd-resize-window.c index ad739165..c420451c 100644 --- a/cmd-resize-window.c +++ b/cmd-resize-window.c @@ -53,8 +53,7 @@ cmd_resize_window_exec(struct cmd *self, struct cmdq_item *item) struct session *s = target->s; const char *errstr; char *cause; - u_int adjust, sx, sy; - int xpixel = -1, ypixel = -1; + u_int adjust, sx, sy, xpixel = 0, ypixel = 0; if (args_count(args) == 0) adjust = 1; -- cgit v1.2.3