summaryrefslogtreecommitdiffstats
path: root/cmd-resize-window.c
diff options
context:
space:
mode:
authornicm <nicm>2023-06-30 13:19:32 +0000
committernicm <nicm>2023-06-30 13:19:32 +0000
commit4e57894e8506f27844fc0e6353475a0b61fd7807 (patch)
tree546735d921e538f5e594c0ff79b4d46a7be7b364 /cmd-resize-window.c
parent2546216019efcbb37bfa67ba8ac101c49d42c48b (diff)
Get rid of some warnings with GCC 10, from Thomas Klausner.
Diffstat (limited to 'cmd-resize-window.c')
-rw-r--r--cmd-resize-window.c3
1 files changed, 1 insertions, 2 deletions
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;