From 0af5b26e41c5141d4094652133c230d76bf82e56 Mon Sep 17 00:00:00 2001 From: M Stoeckl Date: Tue, 22 Jan 2019 10:07:38 -0500 Subject: Fix dead stores found by scan-build In addition to removing unused code, two minor problems are fixed: (1) `resize set` and `resize adjust` did not error when given too many arguments. (2) `orientation` was incorrectly overridden to be 'U' for scroll events in the swaybar tray `handle_click` function. --- client/pool-buffer.c | 1 - 1 file changed, 1 deletion(-) (limited to 'client') diff --git a/client/pool-buffer.c b/client/pool-buffer.c index 588bd06c..836c6b13 100644 --- a/client/pool-buffer.c +++ b/client/pool-buffer.c @@ -85,7 +85,6 @@ static struct pool_buffer *create_buffer(struct wl_shm *shm, close(fd); unlink(name); free(name); - fd = -1; buf->size = size; buf->width = width; -- cgit v1.2.3-54-g00ecf