From 600cbdb7ba8583f3a3425475f8f45ddc267c0ac9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 17 Mar 2021 07:51:27 -0400 Subject: treestore: Initialize some local variables gcc 11 is warning that these might be used uninitialized otherwise. --- gtk/gtktreestore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index c02dcd3a17..c542af00ba 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -2471,7 +2471,9 @@ gtk_tree_store_move (GtkTreeStore *tree_store, GNode *parent, *node, *a, *b, *tmp, *tmp_a, *tmp_b; int old_pos, new_pos, length, i, *order; GtkTreePath *path = NULL, *tmppath, *pos_path = NULL; - GtkTreeIter parent_iter, dst_a, dst_b; + GtkTreeIter parent_iter = { 0, }; + GtkTreeIter dst_a = { 0, }; + GtkTreeIter dst_b = { 0, }; int depth = 0; gboolean handle_b = TRUE; -- cgit v1.2.1