diff --git a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
index 108ea94..f62fd2a 100644
--- a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
+++ b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
@@ -1062,10 +1062,6 @@ gsd_a11y_keyboard_manager_set_property (GObject        *object,
                                         const GValue   *value,
                                         GParamSpec     *pspec)
 {
-        GsdA11yKeyboardManager *self;
-
-        self = GSD_A11Y_KEYBOARD_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -1079,10 +1075,6 @@ gsd_a11y_keyboard_manager_get_property (GObject        *object,
                                         GValue         *value,
                                         GParamSpec     *pspec)
 {
-        GsdA11yKeyboardManager *self;
-
-        self = GSD_A11Y_KEYBOARD_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -1096,9 +1088,6 @@ gsd_a11y_keyboard_manager_constructor (GType                  type,
                                        GObjectConstructParam *construct_properties)
 {
         GsdA11yKeyboardManager      *a11y_keyboard_manager;
-        GsdA11yKeyboardManagerClass *klass;
-
-        klass = GSD_A11Y_KEYBOARD_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_A11Y_KEYBOARD_MANAGER));
 
         a11y_keyboard_manager = GSD_A11Y_KEYBOARD_MANAGER (G_OBJECT_CLASS (gsd_a11y_keyboard_manager_parent_class)->constructor (type,
                                                                                                       n_construct_properties,
@@ -1110,10 +1099,6 @@ gsd_a11y_keyboard_manager_constructor (GType                  type,
 static void
 gsd_a11y_keyboard_manager_dispose (GObject *object)
 {
-        GsdA11yKeyboardManager *a11y_keyboard_manager;
-
-        a11y_keyboard_manager = GSD_A11Y_KEYBOARD_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_a11y_keyboard_manager_parent_class)->dispose (object);
 }
 
diff --git a/plugins/background/gsd-background-manager.c b/plugins/background/gsd-background-manager.c
index ef57cfe..004bc88 100644
--- a/plugins/background/gsd-background-manager.c
+++ b/plugins/background/gsd-background-manager.c
@@ -80,7 +80,6 @@ nautilus_is_drawing_background (GsdBackgroundManager *manager)
        unsigned long  nitems;
        unsigned long  bytes_after;
        unsigned char *data;
-       int            retval;
        Atom           wmclass_atom;
        gboolean       running;
        gint           error;
@@ -99,18 +98,18 @@ nautilus_is_drawing_background (GsdBackgroundManager *manager)
                return FALSE;
        }
 
-       retval = XGetWindowProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
-                                    GDK_ROOT_WINDOW (),
-                                    window_id_atom,
-                                    0,
-                                    1,
-                                    False,
-                                    XA_WINDOW,
-                                    &actual_type,
-                                    &actual_format,
-                                    &nitems,
-                                    &bytes_after,
-                                    &data);
+       XGetWindowProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
+                           GDK_ROOT_WINDOW (),
+                           window_id_atom,
+                           0,
+                           1,
+                           False,
+                           XA_WINDOW,
+                           &actual_type,
+                           &actual_format,
+                           &nitems,
+                           &bytes_after,
+                           &data);
 
        if (data != NULL) {
                nautilus_xid = *(Window *) data;
@@ -130,18 +129,18 @@ nautilus_is_drawing_background (GsdBackgroundManager *manager)
 
        gdk_error_trap_push ();
 
-       retval = XGetWindowProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
-                                    nautilus_xid,
-                                    wmclass_atom,
-                                    0,
-                                    24,
-                                    False,
-                                    XA_STRING,
-                                    &actual_type,
-                                    &actual_format,
-                                    &nitems,
-                                    &bytes_after,
-                                    &data);
+       XGetWindowProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
+                           nautilus_xid,
+                           wmclass_atom,
+                           0,
+                           24,
+                           False,
+                           XA_STRING,
+                           &actual_type,
+                           &actual_format,
+                           &nitems,
+                           &bytes_after,
+                           &data);
 
        error = gdk_error_trap_pop ();
 
@@ -492,10 +491,6 @@ gsd_background_manager_set_property (GObject        *object,
                                      const GValue   *value,
                                      GParamSpec     *pspec)
 {
-        GsdBackgroundManager *self;
-
-        self = GSD_BACKGROUND_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -509,10 +504,6 @@ gsd_background_manager_get_property (GObject        *object,
                                      GValue         *value,
                                      GParamSpec     *pspec)
 {
-        GsdBackgroundManager *self;
-
-        self = GSD_BACKGROUND_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -526,9 +517,6 @@ gsd_background_manager_constructor (GType                  type,
                                     GObjectConstructParam *construct_properties)
 {
         GsdBackgroundManager      *background_manager;
-        GsdBackgroundManagerClass *klass;
-
-        klass = GSD_BACKGROUND_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_BACKGROUND_MANAGER));
 
         background_manager = GSD_BACKGROUND_MANAGER (G_OBJECT_CLASS (gsd_background_manager_parent_class)->constructor (type,
                                                                                                                         n_construct_properties,
@@ -540,10 +528,6 @@ gsd_background_manager_constructor (GType                  type,
 static void
 gsd_background_manager_dispose (GObject *object)
 {
-        GsdBackgroundManager *background_manager;
-
-        background_manager = GSD_BACKGROUND_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_background_manager_parent_class)->dispose (object);
 }
 
diff --git a/plugins/clipboard/gsd-clipboard-manager.c b/plugins/clipboard/gsd-clipboard-manager.c
index 6dc773d..d9f3fde 100644
--- a/plugins/clipboard/gsd-clipboard-manager.c
+++ b/plugins/clipboard/gsd-clipboard-manager.c
@@ -970,10 +970,6 @@ gsd_clipboard_manager_set_property (GObject        *object,
                                     const GValue   *value,
                                     GParamSpec     *pspec)
 {
-        GsdClipboardManager *self;
-
-        self = GSD_CLIPBOARD_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -987,10 +983,6 @@ gsd_clipboard_manager_get_property (GObject        *object,
                                     GValue         *value,
                                     GParamSpec     *pspec)
 {
-        GsdClipboardManager *self;
-
-        self = GSD_CLIPBOARD_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -1004,9 +996,6 @@ gsd_clipboard_manager_constructor (GType                  type,
                                    GObjectConstructParam *construct_properties)
 {
         GsdClipboardManager      *clipboard_manager;
-        GsdClipboardManagerClass *klass;
-
-        klass = GSD_CLIPBOARD_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_CLIPBOARD_MANAGER));
 
         clipboard_manager = GSD_CLIPBOARD_MANAGER (G_OBJECT_CLASS (gsd_clipboard_manager_parent_class)->constructor (type,
                                                                                                       n_construct_properties,
@@ -1018,10 +1007,6 @@ gsd_clipboard_manager_constructor (GType                  type,
 static void
 gsd_clipboard_manager_dispose (GObject *object)
 {
-        GsdClipboardManager *clipboard_manager;
-
-        clipboard_manager = GSD_CLIPBOARD_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_clipboard_manager_parent_class)->dispose (object);
 }
 
diff --git a/plugins/datetime/system-timezone.c b/plugins/datetime/system-timezone.c
index ace76f3..b47f661 100644
--- a/plugins/datetime/system-timezone.c
+++ b/plugins/datetime/system-timezone.c
@@ -754,7 +754,6 @@ system_timezone_is_zone_file_valid (const char  *zone_file,
 {
         GError     *our_error;
         GIOChannel *channel;
-        GIOStatus   status;
         char        buffer[strlen (TZ_MAGIC)];
         gsize       read;
 
@@ -781,9 +780,9 @@ system_timezone_is_zone_file_valid (const char  *zone_file,
         our_error = NULL;
         channel = g_io_channel_new_file (zone_file, "r", &our_error);
         if (!our_error)
-                status = g_io_channel_read_chars (channel,
-                                                  buffer, strlen (TZ_MAGIC),
-                                                  &read, &our_error);
+                g_io_channel_read_chars (channel,
+                                         buffer, strlen (TZ_MAGIC),
+                                         &read, &our_error);
         if (channel)
                 g_io_channel_unref (channel);
 
diff --git a/plugins/dummy/gsd-dummy-manager.c b/plugins/dummy/gsd-dummy-manager.c
index 7d9f3cd..89d4776 100644
--- a/plugins/dummy/gsd-dummy-manager.c
+++ b/plugins/dummy/gsd-dummy-manager.c
@@ -80,10 +80,6 @@ gsd_dummy_manager_set_property (GObject        *object,
                                const GValue   *value,
                                GParamSpec     *pspec)
 {
-        GsdDummyManager *self;
-
-        self = GSD_DUMMY_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -97,10 +93,6 @@ gsd_dummy_manager_get_property (GObject        *object,
                                GValue         *value,
                                GParamSpec     *pspec)
 {
-        GsdDummyManager *self;
-
-        self = GSD_DUMMY_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -114,9 +106,6 @@ gsd_dummy_manager_constructor (GType                  type,
                               GObjectConstructParam *construct_properties)
 {
         GsdDummyManager      *dummy_manager;
-        GsdDummyManagerClass *klass;
-
-        klass = GSD_DUMMY_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_DUMMY_MANAGER));
 
         dummy_manager = GSD_DUMMY_MANAGER (G_OBJECT_CLASS (gsd_dummy_manager_parent_class)->constructor (type,
                                                                                                       n_construct_properties,
@@ -128,10 +117,6 @@ gsd_dummy_manager_constructor (GType                  type,
 static void
 gsd_dummy_manager_dispose (GObject *object)
 {
-        GsdDummyManager *dummy_manager;
-
-        dummy_manager = GSD_DUMMY_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_dummy_manager_parent_class)->dispose (object);
 }
 
diff --git a/plugins/keybindings/gsd-keybindings-manager.c b/plugins/keybindings/gsd-keybindings-manager.c
index 57f22d9..761d184 100644
--- a/plugins/keybindings/gsd-keybindings-manager.c
+++ b/plugins/keybindings/gsd-keybindings-manager.c
@@ -657,10 +657,6 @@ gsd_keybindings_manager_set_property (GObject        *object,
                                const GValue   *value,
                                GParamSpec     *pspec)
 {
-        GsdKeybindingsManager *self;
-
-        self = GSD_KEYBINDINGS_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -674,10 +670,6 @@ gsd_keybindings_manager_get_property (GObject        *object,
                                GValue         *value,
                                GParamSpec     *pspec)
 {
-        GsdKeybindingsManager *self;
-
-        self = GSD_KEYBINDINGS_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -691,9 +683,6 @@ gsd_keybindings_manager_constructor (GType                  type,
                               GObjectConstructParam *construct_properties)
 {
         GsdKeybindingsManager      *keybindings_manager;
-        GsdKeybindingsManagerClass *klass;
-
-        klass = GSD_KEYBINDINGS_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_KEYBINDINGS_MANAGER));
 
         keybindings_manager = GSD_KEYBINDINGS_MANAGER (G_OBJECT_CLASS (gsd_keybindings_manager_parent_class)->constructor (type,
                                                                                                       n_construct_properties,
@@ -705,10 +694,6 @@ gsd_keybindings_manager_constructor (GType                  type,
 static void
 gsd_keybindings_manager_dispose (GObject *object)
 {
-        GsdKeybindingsManager *keybindings_manager;
-
-        keybindings_manager = GSD_KEYBINDINGS_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_keybindings_manager_parent_class)->dispose (object);
 }
 
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index d2ecd8a..23e16d8 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -433,10 +433,6 @@ gsd_keyboard_manager_set_property (GObject        *object,
                                    const GValue   *value,
                                    GParamSpec     *pspec)
 {
-        GsdKeyboardManager *self;
-
-        self = GSD_KEYBOARD_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -450,10 +446,6 @@ gsd_keyboard_manager_get_property (GObject        *object,
                                    GValue         *value,
                                    GParamSpec     *pspec)
 {
-        GsdKeyboardManager *self;
-
-        self = GSD_KEYBOARD_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -467,9 +459,6 @@ gsd_keyboard_manager_constructor (GType                  type,
                                   GObjectConstructParam *construct_properties)
 {
         GsdKeyboardManager      *keyboard_manager;
-        GsdKeyboardManagerClass *klass;
-
-        klass = GSD_KEYBOARD_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_KEYBOARD_MANAGER));
 
         keyboard_manager = GSD_KEYBOARD_MANAGER (G_OBJECT_CLASS (gsd_keyboard_manager_parent_class)->constructor (type,
                                                                                                       n_construct_properties,
@@ -481,10 +470,6 @@ gsd_keyboard_manager_constructor (GType                  type,
 static void
 gsd_keyboard_manager_dispose (GObject *object)
 {
-        GsdKeyboardManager *keyboard_manager;
-
-        keyboard_manager = GSD_KEYBOARD_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_keyboard_manager_parent_class)->dispose (object);
 }
 
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 284880d..7eae81c 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -1585,10 +1585,6 @@ gsd_media_keys_manager_set_property (GObject        *object,
                                const GValue   *value,
                                GParamSpec     *pspec)
 {
-        GsdMediaKeysManager *self;
-
-        self = GSD_MEDIA_KEYS_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -1602,10 +1598,6 @@ gsd_media_keys_manager_get_property (GObject        *object,
                                GValue         *value,
                                GParamSpec     *pspec)
 {
-        GsdMediaKeysManager *self;
-
-        self = GSD_MEDIA_KEYS_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -1619,9 +1611,6 @@ gsd_media_keys_manager_constructor (GType                  type,
                               GObjectConstructParam *construct_properties)
 {
         GsdMediaKeysManager      *media_keys_manager;
-        GsdMediaKeysManagerClass *klass;
-
-        klass = GSD_MEDIA_KEYS_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_MEDIA_KEYS_MANAGER));
 
         media_keys_manager = GSD_MEDIA_KEYS_MANAGER (G_OBJECT_CLASS (gsd_media_keys_manager_parent_class)->constructor (type,
                                                                                                       n_construct_properties,
@@ -1684,7 +1673,6 @@ on_bus_gotten (GObject             *source_object,
                GsdMediaKeysManager *manager)
 {
         GDBusConnection *connection;
-        guint registration_id;
         GError *error = NULL;
 
         connection = g_bus_get_finish (res, &error);
@@ -1695,13 +1683,13 @@ on_bus_gotten (GObject             *source_object,
         }
         manager->priv->connection = connection;
 
-        registration_id = g_dbus_connection_register_object (connection,
-                                                             GSD_MEDIA_KEYS_DBUS_PATH,
-                                                             manager->priv->introspection_data->interfaces[0],
-                                                             &interface_vtable,
-                                                             manager,
-                                                             NULL,
-                                                             NULL);
+        g_dbus_connection_register_object (connection,
+                                           GSD_MEDIA_KEYS_DBUS_PATH,
+                                           manager->priv->introspection_data->interfaces[0],
+                                           &interface_vtable,
+                                           manager,
+                                           NULL,
+                                           NULL);
 
         g_dbus_proxy_new (manager->priv->connection,
                           G_DBUS_PROXY_FLAGS_NONE,
diff --git a/plugins/media-keys/test-media-keys.c b/plugins/media-keys/test-media-keys.c
index 6b9f650..1c5e536 100644
--- a/plugins/media-keys/test-media-keys.c
+++ b/plugins/media-keys/test-media-keys.c
@@ -36,7 +36,6 @@ main (int    argc,
       char **argv)
 {
         GError  *error;
-        gboolean res;
 
 #ifdef ENABLE_NLS
         bindtextdomain (GETTEXT_PACKAGE, GNOME_SETTINGS_LOCALEDIR);
@@ -56,7 +55,7 @@ main (int    argc,
         manager = gsd_media_keys_manager_new ();
 
         error = NULL;
-        res = gsd_media_keys_manager_start (manager, &error);
+        gsd_media_keys_manager_start (manager, &error);
 
         gtk_main ();
 
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index 3ebf2a6..0d85e74 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -103,10 +103,6 @@ gsd_mouse_manager_set_property (GObject        *object,
                                const GValue   *value,
                                GParamSpec     *pspec)
 {
-        GsdMouseManager *self;
-
-        self = GSD_MOUSE_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -120,10 +116,6 @@ gsd_mouse_manager_get_property (GObject        *object,
                                GValue         *value,
                                GParamSpec     *pspec)
 {
-        GsdMouseManager *self;
-
-        self = GSD_MOUSE_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -137,9 +129,6 @@ gsd_mouse_manager_constructor (GType                  type,
                               GObjectConstructParam *construct_properties)
 {
         GsdMouseManager      *mouse_manager;
-        GsdMouseManagerClass *klass;
-
-        klass = GSD_MOUSE_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_MOUSE_MANAGER));
 
         mouse_manager = GSD_MOUSE_MANAGER (G_OBJECT_CLASS (gsd_mouse_manager_parent_class)->constructor (type,
                                                                                                       n_construct_properties,
@@ -151,10 +140,6 @@ gsd_mouse_manager_constructor (GType                  type,
 static void
 gsd_mouse_manager_dispose (GObject *object)
 {
-        GsdMouseManager *mouse_manager;
-
-        mouse_manager = GSD_MOUSE_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_mouse_manager_parent_class)->dispose (object);
 }
 
diff --git a/plugins/mouse/gsd-timeline.c b/plugins/mouse/gsd-timeline.c
index 748a0ad..e746631 100644
--- a/plugins/mouse/gsd-timeline.c
+++ b/plugins/mouse/gsd-timeline.c
@@ -237,10 +237,8 @@ gsd_timeline_set_property (GObject      *object,
 			   GParamSpec   *pspec)
 {
   GsdTimeline *timeline;
-  GsdTimelinePriv *priv;
 
   timeline = GSD_TIMELINE (object);
-  priv = GSD_TIMELINE_GET_PRIV (timeline);
 
   switch (prop_id)
     {
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c b/plugins/print-notifications/gsd-print-notifications-manager.c
index ba2ba16..95c38c2 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -374,10 +374,6 @@ gsd_print_notifications_manager_set_property (GObject        *object,
                                               const GValue   *value,
                                               GParamSpec     *pspec)
 {
-        GsdPrintNotificationsManager *self;
-
-        self = GSD_PRINT_NOTIFICATIONS_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -391,10 +387,6 @@ gsd_print_notifications_manager_get_property (GObject        *object,
                                               GValue         *value,
                                               GParamSpec     *pspec)
 {
-        GsdPrintNotificationsManager *self;
-
-        self = GSD_PRINT_NOTIFICATIONS_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -408,9 +400,6 @@ gsd_print_notifications_manager_constructor (GType                  type,
                                              GObjectConstructParam *construct_properties)
 {
         GsdPrintNotificationsManager      *print_notifications_manager;
-        GsdPrintNotificationsManagerClass *klass;
-
-        klass = GSD_PRINT_NOTIFICATIONS_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_PRINT_NOTIFICATIONS_MANAGER));
 
         print_notifications_manager = GSD_PRINT_NOTIFICATIONS_MANAGER (G_OBJECT_CLASS (gsd_print_notifications_manager_parent_class)->constructor (type,
                                                                                                                                                    n_construct_properties,
@@ -422,10 +411,6 @@ gsd_print_notifications_manager_constructor (GType                  type,
 static void
 gsd_print_notifications_manager_dispose (GObject *object)
 {
-        GsdPrintNotificationsManager *print_notifications_manager;
-
-        print_notifications_manager = GSD_PRINT_NOTIFICATIONS_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_print_notifications_manager_parent_class)->dispose (object);
 }
 
diff --git a/plugins/smartcard/gsd-smartcard-manager.c b/plugins/smartcard/gsd-smartcard-manager.c
index 29e4ef9..b00bb90 100644
--- a/plugins/smartcard/gsd-smartcard-manager.c
+++ b/plugins/smartcard/gsd-smartcard-manager.c
@@ -432,9 +432,6 @@ static void
 gsd_smartcard_manager_emit_smartcard_removed (GsdSmartcardManager *manager,
                                               GsdSmartcard        *card)
 {
-        GsdSmartcardManagerState old_state;
-
-        old_state = manager->priv->state;
         manager->priv->is_unstoppable = TRUE;
         g_signal_emit (manager, gsd_smartcard_manager_signals[SMARTCARD_REMOVED], 0,
                        card);
@@ -868,7 +865,6 @@ start_worker (GsdSmartcardManager  *manager,
 {
         GIOChannel *io_channel;
         GSource *source;
-        GIOFlags channel_flags;
         GsdSmartcardManagerWorker *worker;
 
         worker = gsd_smartcard_manager_create_worker (manager, module);
@@ -885,8 +881,6 @@ start_worker (GsdSmartcardManager  *manager,
 
         io_channel = g_io_channel_unix_new (worker->manager_fd);
 
-        channel_flags = g_io_channel_get_flags (io_channel);
-
         source = g_io_create_watch (io_channel, G_IO_IN | G_IO_HUP);
         g_io_channel_unref (io_channel);
         io_channel = NULL;
@@ -1227,9 +1221,6 @@ gsd_smartcard_manager_worker_emit_smartcard_inserted (GsdSmartcardManagerWorker
                                                       GsdSmartcard               *card,
                                                       GError                    **error)
 {
-        GError *write_error;
-
-        write_error = NULL;
         g_debug ("card '%s' inserted!", gsd_smartcard_get_name (card));
         if (!write_bytes (worker->fd, "I", 1)) {
                 goto error_out;
@@ -1253,7 +1244,7 @@ gsd_smartcard_manager_worker_watch_for_and_process_event (GsdSmartcardManagerWor
                                                           GError                    **error)
 {
         PK11SlotInfo *slot;
-        CK_SLOT_ID slot_id, *key;
+        CK_SLOT_ID slot_id, *key = NULL;
         int slot_series, card_slot_series;
         GsdSmartcard *card;
         GError *processing_error;
diff --git a/plugins/sound/gsd-sound-manager.c b/plugins/sound/gsd-sound-manager.c
index 85ebade..024a56b 100644
--- a/plugins/sound/gsd-sound-manager.c
+++ b/plugins/sound/gsd-sound-manager.c
@@ -341,9 +341,6 @@ gsd_sound_manager_constructor (
                 GObjectConstructParam *construct_properties)
 {
         GsdSoundManager *m;
-        GsdSoundManagerClass *klass;
-
-        klass = GSD_SOUND_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_SOUND_MANAGER));
 
         m = GSD_SOUND_MANAGER (G_OBJECT_CLASS (gsd_sound_manager_parent_class)->constructor (
                                                            type,
diff --git a/plugins/updates/gsd-updates-manager.c b/plugins/updates/gsd-updates-manager.c
index 96ae67b..009a6e5 100644
--- a/plugins/updates/gsd-updates-manager.c
+++ b/plugins/updates/gsd-updates-manager.c
@@ -1306,9 +1306,6 @@ gsd_updates_manager_constructor (
                 GObjectConstructParam *construct_properties)
 {
         GsdUpdatesManager *m;
-        GsdUpdatesManagerClass *klass;
-
-        klass = GSD_UPDATES_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_UPDATES_MANAGER));
 
         m = GSD_UPDATES_MANAGER (G_OBJECT_CLASS (gsd_updates_manager_parent_class)->constructor (
                                                            type,
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index efc61f8..229a61a 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -1823,10 +1823,6 @@ gsd_xrandr_manager_set_property (GObject        *object,
                                const GValue   *value,
                                GParamSpec     *pspec)
 {
-        GsdXrandrManager *self;
-
-        self = GSD_XRANDR_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -1840,10 +1836,6 @@ gsd_xrandr_manager_get_property (GObject        *object,
                                GValue         *value,
                                GParamSpec     *pspec)
 {
-        GsdXrandrManager *self;
-
-        self = GSD_XRANDR_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -1857,9 +1849,6 @@ gsd_xrandr_manager_constructor (GType                  type,
                               GObjectConstructParam *construct_properties)
 {
         GsdXrandrManager      *xrandr_manager;
-        GsdXrandrManagerClass *klass;
-
-        klass = GSD_XRANDR_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_XRANDR_MANAGER));
 
         xrandr_manager = GSD_XRANDR_MANAGER (G_OBJECT_CLASS (gsd_xrandr_manager_parent_class)->constructor (type,
                                                                                                       n_construct_properties,
@@ -1871,10 +1860,6 @@ gsd_xrandr_manager_constructor (GType                  type,
 static void
 gsd_xrandr_manager_dispose (GObject *object)
 {
-        GsdXrandrManager *xrandr_manager;
-
-        xrandr_manager = GSD_XRANDR_MANAGER (object);
-
         G_OBJECT_CLASS (gsd_xrandr_manager_parent_class)->dispose (object);
 }
 
@@ -1967,7 +1952,6 @@ on_bus_gotten (GObject             *source_object,
                GsdXrandrManager    *manager)
 {
         GDBusConnection *connection;
-        guint registration_id;
         GError *error = NULL;
 
         connection = g_bus_get_finish (res, &error);
@@ -1978,13 +1962,13 @@ on_bus_gotten (GObject             *source_object,
         }
         manager->priv->connection = connection;
 
-        registration_id = g_dbus_connection_register_object (connection,
-                                                             GSD_XRANDR_DBUS_PATH,
-                                                             manager->priv->introspection_data->interfaces[0],
-                                                             &interface_vtable,
-                                                             manager,
-                                                             NULL,
-                                                             NULL);
+        g_dbus_connection_register_object (connection,
+                                           GSD_XRANDR_DBUS_PATH,
+                                           manager->priv->introspection_data->interfaces[0],
+                                           &interface_vtable,
+                                           manager,
+                                           NULL,
+                                           NULL);
 }
 
 static void
diff --git a/plugins/xsettings/gsd-xsettings-manager.c b/plugins/xsettings/gsd-xsettings-manager.c
index e714324..ec8ec50 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -287,13 +287,11 @@ xft_settings_get (GnomeXSettingsManager *manager,
 {
         GsdFontAntialiasingMode antialiasing;
         GsdFontHinting hinting;
-        GsdFontRgbaOrder rgba_order;
         double dpi;
         gboolean use_rgba = FALSE;
 
         antialiasing = g_settings_get_enum (manager->priv->plugin_settings, FONT_ANTIALIASING_KEY);
         hinting = g_settings_get_enum (manager->priv->plugin_settings, FONT_HINTING_KEY);
-        rgba_order = g_settings_get_enum (manager->priv->plugin_settings, FONT_RGBA_ORDER_KEY);
         dpi = get_dpi_from_gsettings_or_x_server (manager);
 
         settings->antialias = (antialiasing != GSD_FONT_ANTIALIASING_MODE_NONE);
@@ -777,10 +775,6 @@ gnome_xsettings_manager_set_property (GObject        *object,
                                       const GValue   *value,
                                       GParamSpec     *pspec)
 {
-        GnomeXSettingsManager *self;
-
-        self = GNOME_XSETTINGS_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -794,10 +788,6 @@ gnome_xsettings_manager_get_property (GObject        *object,
                                       GValue         *value,
                                       GParamSpec     *pspec)
 {
-        GnomeXSettingsManager *self;
-
-        self = GNOME_XSETTINGS_MANAGER (object);
-
         switch (prop_id) {
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -811,9 +801,6 @@ gnome_xsettings_manager_constructor (GType                  type,
                                      GObjectConstructParam *construct_properties)
 {
         GnomeXSettingsManager      *xsettings_manager;
-        GnomeXSettingsManagerClass *klass;
-
-        klass = GNOME_XSETTINGS_MANAGER_CLASS (g_type_class_peek (GNOME_TYPE_XSETTINGS_MANAGER));
 
         xsettings_manager = GNOME_XSETTINGS_MANAGER (G_OBJECT_CLASS (gnome_xsettings_manager_parent_class)->constructor (type,
                                                                                                                   n_construct_properties,
@@ -825,10 +812,6 @@ gnome_xsettings_manager_constructor (GType                  type,
 static void
 gnome_xsettings_manager_dispose (GObject *object)
 {
-        GnomeXSettingsManager *xsettings_manager;
-
-        xsettings_manager = GNOME_XSETTINGS_MANAGER (object);
-
         G_OBJECT_CLASS (gnome_xsettings_manager_parent_class)->dispose (object);
 }
 
