From 9bd8ff26b6c038bb6d8509bf999f16dfb5408a88 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 31 Aug 2019 10:18:53 +0200 Subject: remove build warning: local variable shadows another variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actions.c:245:24: warning: declaration of ‘dialog’ shadows a previous local [-Wshadow] caja-engrampa.c:137:17: warning: declaration of ‘file’ shadows a previous local [-Wshadow] caja-engrampa.c:58:17: warning: declaration of ‘file’ shadows a previous local [-Wshadow] dlg-add-files.c:120:9: warning: declaration of ‘uri’ shadows a previous local [-Wshadow] fr-window.c:4935:11: warning: declaration of ‘value’ shadows a previous local [-Wshadow] --- src/actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index cad7a7a..bbb88f1 100644 --- a/src/actions.c +++ b/src/actions.c @@ -224,9 +224,9 @@ get_archive_filename_from_selector (DlgNewData *data) debug (DEBUG_INFO, "create/save %s\n", uri); if (uri_exists (uri)) { - GtkWidget *dialog; if (! is_supported_extension (data->dialog, uri, data->supported_types)) { + GtkWidget *dialog; dialog = _gtk_error_dialog_new (GTK_WINDOW (data->dialog), GTK_DIALOG_MODAL, NULL, -- cgit v1.2.1