From 06ec8896af725b80d9adc7f94699001b0dc23489 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 8 Apr 2020 11:59:34 +0200 Subject: Remove unused-variable warnings --- multiload/linux-proc.c | 4 ---- multiload/load-graph.c | 1 - 2 files changed, 5 deletions(-) (limited to 'multiload') diff --git a/multiload/linux-proc.c b/multiload/linux-proc.c index 355fe040..db532b8c 100644 --- a/multiload/linux-proc.c +++ b/multiload/linux-proc.c @@ -296,8 +296,6 @@ GetSwap (int Maximum, int data [2], LoadGraph *g) void GetLoadAvg (int Maximum, int data [2], LoadGraph *g) { - float used; - glibtop_loadavg loadavg; glibtop_get_loadavg (&loadavg); @@ -380,7 +378,6 @@ GetNet (int Maximum, int data [4], LoadGraph *g) for(i = 0; i < netlist.number; ++i) { - int index; glibtop_netload netload; glibtop_get_netload(&netload, devices[i]); @@ -419,7 +416,6 @@ GetNet (int Maximum, int data [4], LoadGraph *g) else { int delta[COUNT_TYPES]; - int max; int total = 0; for (i = 0; i < COUNT_TYPES; i++) diff --git a/multiload/load-graph.c b/multiload/load-graph.c index 5eb90e8f..9c2af5f5 100644 --- a/multiload/load-graph.c +++ b/multiload/load-graph.c @@ -106,7 +106,6 @@ load_graph_draw (LoadGraph *g) } //printf("max = %d ", maxnet); guint level = 0; - GdkRGBA grid_color; if (maxnet > g->net_threshold3) { g->net_threshold = g->net_threshold3; level = 3; -- cgit v1.2.1