From 92575c4932ec84cbfc228cad2e41525d69eac931 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 5 Sep 2019 19:13:24 +0200 Subject: =?UTF-8?q?netspeed:=20remove=20-Wunused-but-set-variable=20warnin?= =?UTF-8?q?g=20netspeed.c:477:15:=20warning:=20variable=20=E2=80=98state?= =?UTF-8?q?=E2=80=99=20set=20but=20not=20used=20[-Wunused-but-set-variable?= =?UTF-8?q?]=20=20=20477=20|=20=20GtkStateType=20state;=20=20=20=20=20=20?= =?UTF-8?q?=20|=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20^~~~~=20netspe?= =?UTF-8?q?ed.c:476:15:=20warning:=20variable=20=E2=80=98ra=E2=80=99=20set?= =?UTF-8?q?=20but=20not=20used=20[-Wunused-but-set-variable]=20=20=20476?= =?UTF-8?q?=20|=20=20GdkRectangle=20ra;=20=20=20=20=20=20=20|=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20^~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- netspeed/src/netspeed.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c index 45e42eb4..27634998 100644 --- a/netspeed/src/netspeed.c +++ b/netspeed/src/netspeed.c @@ -473,8 +473,6 @@ redraw_graph(MateNetspeedApplet *applet, cairo_t *cr) GtkWidget *da = GTK_WIDGET(applet->drawingarea); GtkStyleContext *stylecontext = gtk_widget_get_style_context (da); GdkWindow *real_window = gtk_widget_get_window (da); - GdkRectangle ra; - GtkStateType state; GdkPoint in_points[GRAPH_VALUES], out_points[GRAPH_VALUES]; PangoLayout *layout; PangoRectangle logical_rect; @@ -540,11 +538,6 @@ redraw_graph(MateNetspeedApplet *applet, cairo_t *cr) } cairo_stroke (cr); - /* draw the 2 labels */ - state = GTK_STATE_NORMAL; - ra.x = 0; ra.y = 0; - ra.width = w; ra.height = h; - text = bytes_to_string(max_val, TRUE, applet->show_bits, applet->short_unit); add_markup_fgcolor(&text, "black"); layout = gtk_widget_create_pango_layout (da, NULL); -- cgit v1.2.1