gnucash stable: Wouldn't build on Fedora 44 because warnings were treated as errors: initialized variable not used

J.Alex Aycinena alex.aycinena at code.gnucash.org
Thu Apr 30 17:51:35 EDT 2026


Updated	 via  https://github.com/Gnucash/gnucash/commit/022ebedd (commit)
	from  https://github.com/Gnucash/gnucash/commit/cf00120e (commit)



commit 022ebedde652e022d16999b7ad246f27732d6756
Author: Alex Aycinena <alex.aycinena at gmail.com>
Date:   Thu Apr 30 14:50:15 2026 -0700

    Wouldn't build on Fedora 44 because warnings were treated as errors: initialized variable not used

diff --git a/gnucash/gnome/dialog-sx-since-last-run.c b/gnucash/gnome/dialog-sx-since-last-run.c
index 433c1184fa..fc1972553b 100644
--- a/gnucash/gnome/dialog-sx-since-last-run.c
+++ b/gnucash/gnome/dialog-sx-since-last-run.c
@@ -808,11 +808,10 @@ gsslrtma_removing_cb (GncSxInstanceModel *inst_model, SchedXaction *to_remove_sx
     GtkTreePath *model_path;
     GtkTreeIter tree_iter;
     GList *iter;
-    int index = 0;
     GncSxInstances *instances;
 
-    // get index, create path, remove
-    for (iter = gnc_sx_instance_model_get_sx_instances_list (inst_model); iter != NULL; iter = iter->next, index++)
+    // get instances, create path, remove
+    for (iter = gnc_sx_instance_model_get_sx_instances_list (inst_model); iter != NULL; iter = iter->next)
     {
         instances = (GncSxInstances*)iter->data;
         if (instances->sx == to_remove_sx)



Summary of changes:
 gnucash/gnome/dialog-sx-since-last-run.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)



More information about the gnucash-changes mailing list