OBS User unknown
2007-06-18 22:12:35 +00:00
committed by Git OBS Bridge
parent 401d1774ac
commit 5633abe4a7
3 changed files with 46 additions and 1 deletions

36
abuild.patch Normal file
View File

@@ -0,0 +1,36 @@
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;