summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-06-30 11:29:52 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-06-30 11:29:52 +0000
commit3dd029c662f3cdd76d4d82cd70b2be7ca5aa7529 (patch)
tree1585570627267d9c43409a9a597b6c3bf5d4d5d2 /dev-cpp/gconfmm/files
parentUnmasking for x86 and sparc, 1+ year, no bugs (diff)
downloadgentoo-2-3dd029c662f3cdd76d4d82cd70b2be7ca5aa7529.tar.gz
gentoo-2-3dd029c662f3cdd76d4d82cd70b2be7ca5aa7529.tar.bz2
gentoo-2-3dd029c662f3cdd76d4d82cd70b2be7ca5aa7529.zip
Fix building on amd64 with gcc4.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-cpp/gconfmm/files')
-rw-r--r--dev-cpp/gconfmm/files/gconfmm-2.6.1-amd64-gcc4.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-cpp/gconfmm/files/gconfmm-2.6.1-amd64-gcc4.patch b/dev-cpp/gconfmm/files/gconfmm-2.6.1-amd64-gcc4.patch
new file mode 100644
index 000000000000..b2dc5f454aee
--- /dev/null
+++ b/dev-cpp/gconfmm/files/gconfmm-2.6.1-amd64-gcc4.patch
@@ -0,0 +1,21 @@
+Fixes:
+
+ client.cc: In member function 'GSList* Gnome::Conf::Client::get_list(const Glib::ustring&, GConfValueType) const':
+ client.cc:185: error: cast from 'void*' to 'int' loses precision
+ client.cc:188: error: cast from 'void*' to 'gboolean' loses precision
+
+--- gconfmm-2.6.1/gconf/gconfmm/client.cc.orig 2005-06-30 13:10:50.000000000 +0200
++++ gconfmm-2.6.1/gconf/gconfmm/client.cc 2005-06-30 13:09:45.000000000 +0200
+@@ -182,10 +182,10 @@
+ switch(list_type)
+ {
+ case GCONF_VALUE_INT:
+- gconf_value_set_int(v,(int)i->data);
++ gconf_value_set_int(v,(int)((long)i->data));
+ break;
+ case GCONF_VALUE_BOOL:
+- gconf_value_set_bool(v,(gboolean)i->data);
++ gconf_value_set_bool(v,(gboolean)((long)i->data));
+ break;
+ case GCONF_VALUE_FLOAT:
+ gconf_value_set_float(v,*(gdouble*)i->data);