[at-spi2-core] Fix various warnings



commit 57e6827adb4247724854ae85ab5c8e2e7c68a876
Author: Mike Gorse <mgorse suse com>
Date:   Wed Jan 16 04:45:30 2013 -0600

    Fix various warnings

 atspi/atspi-misc.c                |    2 +-
 registryd/deviceeventcontroller.c |    7 -------
 registryd/registry.c              |    8 +-------
 test/memory.c                     |    1 +
 4 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index 471d6a1..d018119 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -357,7 +357,7 @@ handle_name_owner_changed (DBusConnection *bus, DBusMessage *message, void *user
                               DBUS_TYPE_STRING, &new,
                               DBUS_TYPE_INVALID))
   {
-    return;
+    return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
   }
 
   if (!strcmp (name, "org.a11y.atspi.Registry"))
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index 19c6df5..e23eafd 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -1002,7 +1002,6 @@ append_keystroke_listener (DBusMessageIter *iter, DEControllerKeyListener *liste
 {
   dbus_uint32_t d_uint;
   DBusMessageIter iter_struct, iter_subarray, iter_substruct;
-  GList *l;
   GSList *kl;
 
   if (!dbus_message_iter_open_container (iter, DBUS_TYPE_STRUCT, NULL,
@@ -1210,7 +1209,6 @@ time_elapsed (struct timeval *origin)
 static void
 reset_hung_process_from_ping (DBusPendingCall *pending, void *data)
 {
-  gchar *bus_name = data;
   GSList *l;
 
   for (l = hung_processes; l; l = l->next)
@@ -2436,7 +2434,6 @@ impl_get_keystroke_listeners (DBusConnection *bus,
 				  void *user_data)
 {
   SpiDEController *controller = SPI_DEVICE_EVENT_CONTROLLER(user_data);
-  DEControllerKeyListener *dec_listener;
   DBusMessageIter iter, iter_array;
   DBusMessage *reply = dbus_message_new_method_return (message);
   GList *l;
@@ -2461,7 +2458,6 @@ impl_get_device_event_listeners (DBusConnection *bus,
 				  void *user_data)
 {
   SpiDEController *controller = SPI_DEVICE_EVENT_CONTROLLER(user_data);
-  DEControllerKeyListener *dec_listener;
   DBusMessageIter iter, iter_array;
   GList *l;
   DBusMessage *reply = dbus_message_new_method_return (message);
@@ -2773,7 +2769,6 @@ static DBusMessage * impl_generate_keyboard_event (DBusConnection *bus, DBusMess
   dbus_int32_t keycode;
   char *keystring;
   dbus_uint32_t synth_type;
-  gint err;
   KeySym keysym;
   DEControllerPrivateData *priv;
   DBusMessage *reply = NULL;
@@ -3133,7 +3128,6 @@ impl_Introspect (DBusConnection * bus,
 {
   GString *output;
   gchar *final;
-  gint i;
 
   const gchar *pathstr = SPI_DBUS_PATH_DEC;
 
@@ -3162,7 +3156,6 @@ handle_dec_method_from_idle (DBusConnection *bus, DBusMessage *message, void *us
 {
   const gchar *iface   = dbus_message_get_interface (message);
   const gchar *member  = dbus_message_get_member (message);
-  const gint   type    = dbus_message_get_type (message);
   DBusHandlerResult result = DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
   DBusMessage *reply = NULL;
 
diff --git a/registryd/registry.c b/registryd/registry.c
index e283a90..b45d022 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -84,8 +84,6 @@ G_DEFINE_TYPE(SpiRegistry, spi_registry, G_TYPE_OBJECT)
 static void
 spi_registry_class_init (SpiRegistryClass *klass)
 {
-  GObjectClass * object_class = (GObjectClass *) klass;
-
   spi_registry_parent_class = g_type_class_ref (G_TYPE_OBJECT);
 }
 
@@ -226,7 +224,6 @@ needs_mouse_poll (char **event)
 static void
 remove_events (SpiRegistry *registry, const char *bus_name, const char *event)
 {
-  event_data *evdata;
   gchar **remove_data;
   GList *list;
   gboolean mouse_found = FALSE;
@@ -340,7 +337,6 @@ ensure_proper_format (const char *name)
 static DBusHandlerResult
 signal_filter (DBusConnection *bus, DBusMessage *message, void *user_data)
 {
-  SpiRegistry *registry = SPI_REGISTRY (user_data);
   guint res = DBUS_HANDLER_RESULT_HANDLED;
   const gint   type    = dbus_message_get_type (message);
   const char *iface = dbus_message_get_interface (message);
@@ -460,7 +456,6 @@ impl_GetAccessibleAtPoint (DBusConnection * bus, DBusMessage * message,
 static DBusMessage *
 impl_GetExtents (DBusConnection * bus, DBusMessage * message, void *user_data)
 {
-  dbus_uint32_t coord_type;
   dbus_int32_t x = 0, y = 0, width = 1024, height = 768;
   DBusMessage *reply;
   DBusMessageIter iter, iter_struct;
@@ -608,6 +603,7 @@ impl_get_ToolkitName (DBusMessageIter * iter, void *user_data)
   return return_v_string (iter, "at-spi-registry");
 }
 
+static dbus_bool_t
 impl_get_ToolkitVersion (DBusMessageIter * iter, void *user_data)
 {
   return return_v_string (iter, "2.0");
@@ -953,7 +949,6 @@ impl_Introspect_root (DBusConnection * bus,
 {
   GString *output;
   gchar *final;
-  gint i;
 
   const gchar *pathstr = SPI_DBUS_PATH_ROOT;
 
@@ -982,7 +977,6 @@ impl_Introspect_registry (DBusConnection * bus,
 {
   GString *output;
   gchar *final;
-  gint i;
 
   const gchar *pathstr = SPI_DBUS_PATH_REGISTRY;
 
diff --git a/test/memory.c b/test/memory.c
index 28c3a8e..7a8aff5 100644
--- a/test/memory.c
+++ b/test/memory.c
@@ -75,4 +75,5 @@ main()
   if (!child_pid)
     execlp ("gedit", "gedit", NULL);
   atspi_event_main ();
+  return 0;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]