From d646ca2187ca959224f930f39919c9cf01d3cf85 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 10 Mar 2021 12:30:16 +0100 Subject: =?UTF-8?q?warning:=20declaration=20of=20=E2=80=98content=5Farea?= =?UTF-8?q?=E2=80=99=20shadows=20a=20previous=20local?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sensors-applet/prefs-dialog.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sensors-applet/prefs-dialog.c b/sensors-applet/prefs-dialog.c index 98196d4..8e92c81 100644 --- a/sensors-applet/prefs-dialog.c +++ b/sensors-applet/prefs-dialog.c @@ -455,10 +455,7 @@ void prefs_dialog_open(SensorsApplet *sensors_applet) { /* if no SensorsList's have been created, this is because we haven't been able to access any sensors */ if (sensors_applet->sensors == NULL) { - GtkWidget *label; - GtkWidget *content_area; - label = gtk_label_new(_("No sensors found!")); - content_area = gtk_dialog_get_content_area (prefs_dialog->dialog); + GtkWidget *label = gtk_label_new(_("No sensors found!")); gtk_box_pack_start (GTK_BOX(content_area), label, FALSE, FALSE, 0); return; } -- cgit v1.2.1