From 5633abe4a70683ab8076011734972f1d6ce81454 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 18 Jun 2007 22:12:35 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/anjuta?expand=0&rev=4 --- abuild.patch | 36 ++++++++++++++++++++++++++++++++++++ anjuta.changes | 5 +++++ anjuta.spec | 6 +++++- 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 abuild.patch diff --git a/abuild.patch b/abuild.patch new file mode 100644 index 0000000..0971327 --- /dev/null +++ b/abuild.patch @@ -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; diff --git a/anjuta.changes b/anjuta.changes index 5a1b931..37dbdad 100644 --- a/anjuta.changes +++ b/anjuta.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 18 15:05:07 CDT 2007 - maw@suse.de + +- Add abuild.patch (#241836). + ------------------------------------------------------------------- Mon Apr 23 10:35:58 CEST 2007 - pgajdos@suse.cz diff --git a/anjuta.spec b/anjuta.spec index 1c20062..70f34fa 100644 --- a/anjuta.spec +++ b/anjuta.spec @@ -17,7 +17,7 @@ Group: Development/Tools/IDE Autoreqprov: on Requires: automake autoconf libtool gettext alsa alsa-devel audiofile devhelp esound esound-devel gconf2 gconf2-devel gconf2-doc gnome-terminal gnome-vfs2 gnome-vfs2-devel gnome-vfs2-doc libart_lgpl libart_lgpl-devel libbonobo libbonobo-devel libbonobo-doc libbonoboui libbonoboui-devel libbonoboui-doc libglade2 libglade2-devel libglade2-doc libgnome libgnome-devel libgnome-doc libgnomecanvas libgnomecanvas-devel libgnomecanvas-doc libgnomeui libgnomeui-devel libgnomeui-doc libwnck libwnck-devel libxml2 libxml2-devel openssl openssl-devel orbit2 orbit2-devel popt popt-devel libgnomeprint libgnomeprint-devel libgnomeprint-doc libgnomeprintui libgnomeprintui-devel libgnomeprintui-doc yelp Version: 1.2.4a -Release: 70 +Release: 101 Summary: GNOME IDE for C and C++ Source: anjuta-%{version}.tar.bz2 Source1: README.SuSE @@ -26,6 +26,7 @@ Patch1: configure.patch Patch2: anjuta-64bit.patch Patch3: anjuta-1.2.4a_array-index.patch Patch4: anjuta-1.2.4a_literal-comparsion.patch +Patch5: abuild.patch URL: http://anjuta.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -58,6 +59,7 @@ fi %patch2 %patch3 %patch4 +%patch5 -p1 cp -a %{S:1} . rm po/no.* sed -i "s/\(ALL_LINGUAS.*\) no /\1 /" configure.in @@ -124,6 +126,8 @@ fi %doc %{_mandir}/man?/*.* %changelog +* Mon Jun 18 2007 - maw@suse.de +- Add abuild.patch (#241836). * Mon Apr 23 2007 - pgajdos@suse.cz - fixed new gcc warnings - literal-comparsion.patch