From 6f31ca6ce3ea722c7d1ecfe2099108133ce4215c Mon Sep 17 00:00:00 2001 From: "Ali H. Fardan" Date: Sun, 21 Aug 2016 15:43:57 +0300 Subject: fixed compiler warnings in a better way --- slstatus.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'slstatus.c') diff --git a/slstatus.c b/slstatus.c index b0e3eef..7bd3b8c 100644 --- a/slstatus.c +++ b/slstatus.c @@ -611,16 +611,6 @@ main(void) char *res, *element; struct arg argument; - /* get rid of unused functions warning */ - if (0) { setstatus(""); battery_perc(""); cpu_perc(); - datetime(""); disk_free(""); disk_perc(""); - disk_total(""); disk_used(""); entropy(); - gid(); hostname(); ip(""); load_avg(); - ram_free(); ram_perc(); ram_used(); ram_total(); - run_command(""); temp(""); uid(); uptime(); - username(); vol_perc(""); wifi_perc(""); - wifi_essid(""); } - if (!(dpy = XOpenDisplay(0x0))) { fprintf(stderr, "Cannot open display!\n"); exit(1); -- cgit v1.2.3