netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=2f46f79e770ff8f62bd0a71e0175566262f3f3f7
commit 2f46f79e770ff8f62bd0a71e0175566262f3f3f7 Author: Alastair Poole <nets...@gmail.com> Date: Thu Sep 5 23:01:00 2019 +0100 Silence some compiler warnings --- src/main.c | 2 -- src/process.h | 2 +- src/system.c | 1 - src/ui.c | 6 ++---- src/ui.h | 1 + 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main.c b/src/main.c index 954d073..7d83101 100644 --- a/src/main.c +++ b/src/main.c @@ -5,8 +5,6 @@ #define VERSION "0.2.6" -#include "process.h" -#include "system.h" #include "ui.h" static void diff --git a/src/process.h b/src/process.h index 0ec7539..7a1632c 100644 --- a/src/process.h +++ b/src/process.h @@ -24,7 +24,7 @@ # define PID_MAX 99999 #endif -#define CMD_NAME_MAX 256 +#define CMD_NAME_MAX 1024 typedef struct _Proc_Stats { diff --git a/src/system.c b/src/system.c index f2d2869..588496f 100644 --- a/src/system.c +++ b/src/system.c @@ -109,7 +109,6 @@ file_contents(const char *path) char *buf; char byte[1]; size_t count, bytes = 0; - struct stat st; FILE *f; f = fopen(path, "r"); diff --git a/src/ui.c b/src/ui.c index 057e9d6..83bc79f 100644 --- a/src/ui.c +++ b/src/ui.c @@ -122,7 +122,6 @@ _tab_misc_update(Ui *ui, results_t *results) { Evas_Object *box, *frame, *progress; char *tmp; - int i; if (!ui->misc_visible) return; @@ -310,7 +309,7 @@ _tab_disk_update(Ui *ui) static void _tab_memory_update(Ui *ui, results_t *results) { - Evas_Object *box, *frame, *progress; + Evas_Object *progress; double ratio, value; if (!ui->mem_visible) @@ -1003,7 +1002,6 @@ _process_panel_pids_update(Ui *ui) Elm_Widget_Item *item; Eina_List *list; pid_t *pid; - char buf[64]; if (!ui->panel_visible) return; @@ -1492,7 +1490,7 @@ _ui_tab_system_add(Ui *ui) static void _ui_process_panel_add(Ui *ui) { - Evas_Object *parent, *panel, *box, *hbox, *frame, *scroller, *table; + Evas_Object *parent, *panel, *hbox, *frame, *scroller, *table; Evas_Object *label, *list, *entry, *button, *border; parent = ui->content; diff --git a/src/ui.h b/src/ui.h index 8b60822..d58afee 100644 --- a/src/ui.h +++ b/src/ui.h @@ -2,6 +2,7 @@ #define __UI_H__ #include <Elementary.h> +#include "process.h" #define EVISUM_SIZE_WIDTH 500 #define EVISUM_SIZE_HEIGHT 560 --