droute: Fix compile-time warnings
authorBastien Nocera <hadess@hadess.net>
Wed, 13 Jun 2012 17:05:49 +0000 (18:05 +0100)
committerBastien Nocera <hadess@hadess.net>
Thu, 11 Oct 2012 13:27:12 +0000 (15:27 +0200)
Unused variables and discarding 'const' qualifier.

https://bugzilla.gnome.org/show_bug.cgi?id=678045

droute/droute.c

index 1567fc7..f1ff993 100644 (file)
@@ -174,7 +174,6 @@ droute_add_one (DRouteContext *cnx,
                 const void    *data)
 {
     DRoutePath *new_path;
-    gboolean registered;
 
     new_path = path_new (cnx, path, FALSE, (void *)data, NULL, NULL, NULL);
 
@@ -215,7 +214,7 @@ droute_path_add_interface(DRoutePath *path,
 
     itf = g_string_chunk_insert (path->chunks, name);
     g_ptr_array_add (path->interfaces, itf);
-    g_ptr_array_add (path->introspection, introspect);
+    g_ptr_array_add (path->introspection, (gpointer) introspect);
 
     for (; methods != NULL && methods->name != NULL; methods++)
       {