anjuta/abuild.patch

37 lines
1.3 KiB
Diff

I: Program is using uninitialized variables.
Note the difference between "is used" and "may be used"
W: anjuta uninitialized-variable breakpoints.c: 668
W: anjuta uninitialized-variable project_dbase_gui.c: 1313
Index: anjuta-1.2.4a/src/breakpoints.c
===================================================================
--- anjuta-1.2.4a.orig/src/breakpoints.c
+++ anjuta-1.2.4a/src/breakpoints.c
@@ -665,7 +665,6 @@ on_bk_properties_clicked (GtkWidget *but
valid = gtk_tree_selection_get_selected (selection, &model, &iter);
if (!valid)
{
- g_object_unref (gxml);
return;
}
gtk_tree_model_get (model, &iter, DATA_COLUMN, &bid, -1);
Index: anjuta-1.2.4a/src/project_dbase_gui.c
===================================================================
--- anjuta-1.2.4a.orig/src/project_dbase_gui.c
+++ anjuta-1.2.4a/src/project_dbase_gui.c
@@ -1304,9 +1304,13 @@ static void
on_prj_import_confirm_yes (GtkButton * button, const gchar* filename,
gpointer user_data)
{
- PrjModule selMod ;
+ /* the second argument to project_dbase_import_file_real is ignored,
+ so zeroing this out silence warnings is safe. */
+ PrjModule selMod;
ProjectDBase *p = user_data;
+ memset (&selMod, 0, sizeof (selMod));
+
gtk_widget_hide (p->fileselection_add_file);
if (!filename)
return;