From 98759f7bed3768ef150dcd41f97f87cbb84be8b1 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 21 Dec 2020 16:38:28 +0100 Subject: Remove cppcheck warnings about the variable scope can be reduced --- src/gtk-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gtk-utils.c') diff --git a/src/gtk-utils.c b/src/gtk-utils.c index d021147..ea64bd0 100644 --- a/src/gtk-utils.c +++ b/src/gtk-utils.c @@ -254,11 +254,9 @@ _gtk_error_dialog_new (GtkWindow *parent, GtkWidget *expander; GtkWidget *content_area; GtkWidget *action_area; - GtkTextBuffer *text_buf; GtkTextIter iter; GList *scan; char *escaped_message, *markup_text; - va_list args; gboolean view_output = (row_output != NULL); dialog = gtk_dialog_new_with_buttons ("", @@ -287,6 +285,7 @@ _gtk_error_dialog_new (GtkWindow *parent, escaped_message = g_markup_escape_text (primary_text, -1); if (secondary_text != NULL) { + va_list args; char *secondary_message; char *escaped_secondary_message; @@ -309,6 +308,8 @@ _gtk_error_dialog_new (GtkWindow *parent, g_free (escaped_message); if (view_output) { + GtkTextBuffer *text_buf; + gtk_widget_set_size_request (dialog, 500, -1); /* Expander */ -- cgit v1.2.1