From 08de5f9c363e16be416d159b62937450314d7808 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 19 Sep 2023 20:59:04 -0400 Subject: [PATCH] cleanup compiler warnings --- dwm.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/dwm.c b/dwm.c index ec2d4a5..fe98812 100644 --- a/dwm.c +++ b/dwm.c @@ -249,7 +249,6 @@ static void setmfact(const Arg *arg); static void setup(void); static void seturgent(Client *c, int urg); static void showhide(Client *c); -static void sigchld(int unused); static void sighup(int unused); static void sigterm(int unused); static void spawn(const Arg *arg); @@ -946,8 +945,6 @@ void drawbar(Monitor *m) { int x, w, tw = 0, stw = 0; - int boxs = drw->fonts->h / 9; - int boxw = drw->fonts->h / 6 + 2; unsigned int i, occ = 0, urg = 0; Client *c; @@ -2088,14 +2085,6 @@ showhide(Client *c) } } -void -sigchld(int unused) -{ - if (signal(SIGCHLD, sigchld) == SIG_ERR) - die("can't install SIGCHLD handler:"); - while (0 < waitpid(-1, NULL, WNOHANG)); -} - void sighup(int unused) {