diff options
author | rbuj <[email protected]> | 2019-08-31 10:18:53 +0200 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2019-09-03 18:08:10 +0200 |
commit | 9bd8ff26b6c038bb6d8509bf999f16dfb5408a88 (patch) | |
tree | 51f1215c99ad67107d6317efb616c2a0ab043851 /src/fr-window.c | |
parent | b37773ded4dd15c7591a2e40e4c2e40ba9341c8f (diff) | |
download | engrampa-9bd8ff26b6c038bb6d8509bf999f16dfb5408a88.tar.bz2 engrampa-9bd8ff26b6c038bb6d8509bf999f16dfb5408a88.tar.xz |
remove build warning: local variable shadows another variable
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]
Diffstat (limited to 'src/fr-window.c')
-rw-r--r-- | src/fr-window.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fr-window.c b/src/fr-window.c index 69a6de1..ee296ce 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -4932,7 +4932,7 @@ add_file_list_columns (FrWindow *window, /* Other columns */ for (j = 0, i = COLUMN_SIZE; i < NUMBER_OF_COLUMNS; i++, j++) { - GValue value = { 0, }; + GValue value_oc = { 0, }; renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes (g_dpgettext2 (NULL, "File", titles[j]), @@ -4946,10 +4946,10 @@ add_file_list_columns (FrWindow *window, gtk_tree_view_column_set_sort_column_id (column, i); - g_value_init (&value, PANGO_TYPE_ELLIPSIZE_MODE); - g_value_set_enum (&value, PANGO_ELLIPSIZE_END); - g_object_set_property (G_OBJECT (renderer), "ellipsize", &value); - g_value_unset (&value); + g_value_init (&value_oc, PANGO_TYPE_ELLIPSIZE_MODE); + g_value_set_enum (&value_oc, PANGO_ELLIPSIZE_END); + g_object_set_property (G_OBJECT (renderer), "ellipsize", &value_oc); + g_value_unset (&value_oc); gtk_tree_view_append_column (treeview, column); } |