summaryrefslogtreecommitdiff
path: root/netspeed/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-05 19:13:24 +0200
committerraveit65 <[email protected]>2019-09-13 19:22:40 +0200
commit92575c4932ec84cbfc228cad2e41525d69eac931 (patch)
tree061fa3f9e32ab0c197160843bc1dcec85f5ae594 /netspeed/src
parentd839dfb7516dcc88f3766b3af572d52b04d8bc5c (diff)
downloadmate-applets-92575c4932ec84cbfc228cad2e41525d69eac931.tar.bz2
mate-applets-92575c4932ec84cbfc228cad2e41525d69eac931.tar.xz
netspeed: remove -Wunused-but-set-variable warning
netspeed.c:477:15: warning: variable ‘state’ set but not used [-Wunused-but-set-variable] 477 | GtkStateType state; | ^~~~~ netspeed.c:476:15: warning: variable ‘ra’ set but not used [-Wunused-but-set-variable] 476 | GdkRectangle ra; | ^~
Diffstat (limited to 'netspeed/src')
-rw-r--r--netspeed/src/netspeed.c7
1 files changed, 0 insertions, 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);