diff options
author | kwm <kwm@FreeBSD.org> | 2011-06-21 06:05:02 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2011-06-21 06:05:02 +0800 |
commit | 259f221047c655203ca32fa72affd57bb1c73ddc (patch) | |
tree | 3b74eb04e88afc300550f4259c54861e051b37c7 /accessibility | |
parent | 40c8ff2523b73434d8bcfb726d473b290ccbf848 (diff) | |
download | freebsd-ports-gnome-259f221047c655203ca32fa72affd57bb1c73ddc.tar.gz freebsd-ports-gnome-259f221047c655203ca32fa72affd57bb1c73ddc.tar.zst freebsd-ports-gnome-259f221047c655203ca32fa72affd57bb1c73ddc.zip |
Fix build with clang
Make sure to return a value, when doing return in a non-void function.
Submitted by: Clang exp-run
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/at-spi2-core/files/patch-registryd_registry.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/accessibility/at-spi2-core/files/patch-registryd_registry.c b/accessibility/at-spi2-core/files/patch-registryd_registry.c new file mode 100644 index 000000000000..678eea097faf --- /dev/null +++ b/accessibility/at-spi2-core/files/patch-registryd_registry.c @@ -0,0 +1,42 @@ +--- registryd/registry.c.orig 2011-06-20 23:41:30.000000000 +0200 ++++ registryd/registry.c 2011-06-20 23:57:26.000000000 +0200 +@@ -348,7 +348,7 @@ + const char *member = dbus_message_get_member (message); + + if (type != DBUS_MESSAGE_TYPE_SIGNAL) +- return; ++ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; + + if (!g_strcmp0(iface, DBUS_INTERFACE_DBUS) && + !g_strcmp0(member, "NameOwnerChanged")) +@@ -806,18 +806,18 @@ + + if (!dbus_message_get_args (message, NULL, DBUS_TYPE_STRING, &orig_name, + DBUS_TYPE_INVALID)) +- return; ++ return NULL; + + name = ensure_proper_format (orig_name); + + evdata = (event_data *) g_malloc (sizeof (*evdata)); + if (!evdata) +- return; ++ return NULL; + data = g_strsplit (name, ":", 3); + if (!data) + { + g_free (evdata); +- return; ++ return NULL; + } + if (!data [0]) + data [1] = NULL; +@@ -856,7 +856,7 @@ + + if (!dbus_message_get_args (message, NULL, DBUS_TYPE_STRING, &orig_name, + DBUS_TYPE_INVALID)) +- return; ++ return NULL; + name = ensure_proper_format (orig_name); + + remove_events (registry, sender, name); |