Silence some compiler warnings

This commit is contained in:
Alastair Poole 2019-09-05 23:01:00 +01:00
parent e5bbcd1f5c
commit 2f46f79e77
5 changed files with 4 additions and 8 deletions

View File

@ -5,8 +5,6 @@
#define VERSION "0.2.6" #define VERSION "0.2.6"
#include "process.h"
#include "system.h"
#include "ui.h" #include "ui.h"
static void static void

View File

@ -24,7 +24,7 @@
# define PID_MAX 99999 # define PID_MAX 99999
#endif #endif
#define CMD_NAME_MAX 256 #define CMD_NAME_MAX 1024
typedef struct _Proc_Stats typedef struct _Proc_Stats
{ {

View File

@ -109,7 +109,6 @@ file_contents(const char *path)
char *buf; char *buf;
char byte[1]; char byte[1];
size_t count, bytes = 0; size_t count, bytes = 0;
struct stat st;
FILE *f; FILE *f;
f = fopen(path, "r"); f = fopen(path, "r");

View File

@ -122,7 +122,6 @@ _tab_misc_update(Ui *ui, results_t *results)
{ {
Evas_Object *box, *frame, *progress; Evas_Object *box, *frame, *progress;
char *tmp; char *tmp;
int i;
if (!ui->misc_visible) if (!ui->misc_visible)
return; return;
@ -310,7 +309,7 @@ _tab_disk_update(Ui *ui)
static void static void
_tab_memory_update(Ui *ui, results_t *results) _tab_memory_update(Ui *ui, results_t *results)
{ {
Evas_Object *box, *frame, *progress; Evas_Object *progress;
double ratio, value; double ratio, value;
if (!ui->mem_visible) if (!ui->mem_visible)
@ -1003,7 +1002,6 @@ _process_panel_pids_update(Ui *ui)
Elm_Widget_Item *item; Elm_Widget_Item *item;
Eina_List *list; Eina_List *list;
pid_t *pid; pid_t *pid;
char buf[64];
if (!ui->panel_visible) if (!ui->panel_visible)
return; return;
@ -1492,7 +1490,7 @@ _ui_tab_system_add(Ui *ui)
static void static void
_ui_process_panel_add(Ui *ui) _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; Evas_Object *label, *list, *entry, *button, *border;
parent = ui->content; parent = ui->content;

View File

@ -2,6 +2,7 @@
#define __UI_H__ #define __UI_H__
#include <Elementary.h> #include <Elementary.h>
#include "process.h"
#define EVISUM_SIZE_WIDTH 500 #define EVISUM_SIZE_WIDTH 500
#define EVISUM_SIZE_HEIGHT 560 #define EVISUM_SIZE_HEIGHT 560