File libbonobo-strict-aliasing.patch of Package libbonobo
--- bonobo-activation/bonobo-activation-shlib.c
+++ bonobo-activation/bonobo-activation-shlib.c
@@ -71,7 +71,7 @@
CORBA_Environment *ev)
{
CORBA_Object retval;
- const BonoboActivationPlugin *plugin;
+ gpointer plugin;
ActivePluginInfo *local_plugin_info = NULL;
const BonoboActivationPluginObject *pobj;
int i;
@@ -115,7 +115,7 @@
}
success = g_module_symbol (gmod, "Bonobo_Plugin_info",
- (gpointer *) &plugin);
+ &plugin);
if (!success) {
char *error_string;
Bonobo_GeneralError *error = Bonobo_GeneralError__alloc ();
@@ -154,7 +154,7 @@
success =
g_module_symbol (local_plugin_info->loaded,
"Bonobo_Plugin_info",
- (gpointer *) & plugin);
+ & plugin);
if (!success) {
char *error_string;
Bonobo_GeneralError *error = Bonobo_GeneralError__alloc ();
@@ -179,7 +179,7 @@
/* Index into the string list one element from the end to get the iid of the shlib */
iid = sh->res._u.res_shlib._buffer[sh->res._u.res_shlib._length - 2];
- for (pobj = plugin->plugin_object_list; pobj->iid; pobj++) {
+ for (pobj = ((const BonoboActivationPlugin*)plugin)->plugin_object_list; pobj->iid; pobj++) {
if (strcmp (iid, pobj->iid) == 0) {
/* Found a match */
break;
--- bonobo/bonobo-item-handler.c
+++ bonobo/bonobo-item-handler.c
@@ -8,6 +8,9 @@
* Copyright 2000 Miguel de Icaza.
*/
#include <config.h>
+
+/* g_value_set_boxed_take_ownership is deprecated */
+#undef G_DISABLE_DEPRECATED
#include <glib-object.h>
#include <gobject/gmarshal.h>
#include <bonobo/bonobo-main.h>
--- bonobo/bonobo-moniker-simple.c
+++ bonobo/bonobo-moniker-simple.c
@@ -9,6 +9,8 @@
*/
#include <config.h>
+/* g_value_set_boxed_take_ownership is deprecated */
+#undef G_DISABLE_DEPRECATED
#include <bonobo/bonobo-moniker.h>
#include <bonobo/bonobo-moniker-simple.h>
--- bonobo/bonobo-property-bag.c
+++ bonobo/bonobo-property-bag.c
@@ -10,6 +10,9 @@
* Copyright 2001 Ximian, Inc.
*/
#include <config.h>
+
+/* g_value_set_boxed_take_ownership is deprecated */
+#undef G_DISABLE_DEPRECATED
#include <bonobo/Bonobo.h>
#include <bonobo/bonobo-exception.h>
#include <bonobo/bonobo-property-bag.h>