summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compositor/compositor-xrender.c8
-rw-r--r--src/tools/metacity-mag.c3
2 files changed, 9 insertions, 2 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index c2b60ac..b128daf 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -2697,6 +2697,11 @@ xrender_destroy (MetaCompositor *compositor)
#endif
}
+#if 0
+/* Taking these out because they're empty and never called, and the
+ * compiler complains -- tthurman
+ */
+
static void
xrender_begin_move (MetaCompositor *compositor,
MetaWindow *window,
@@ -2741,7 +2746,8 @@ xrender_free_window (MetaCompositor *compositor,
/* destroy_win (compositor->display, window->xwindow, FALSE); */
#endif
}
-
+#endif /* 0 */
+
static void
xrender_process_event (MetaCompositor *compositor,
XEvent *event,
diff --git a/src/tools/metacity-mag.c b/src/tools/metacity-mag.c
index 55da73c..a5f1b1b 100644
--- a/src/tools/metacity-mag.c
+++ b/src/tools/metacity-mag.c
@@ -132,7 +132,8 @@ grab_area_at_mouse (GtkWidget *invisible,
gtk_container_add (GTK_CONTAINER (display_window), widget);
g_object_unref (G_OBJECT (magnified));
- g_object_add_weak_pointer (G_OBJECT (display_window), (void**) &display_window);
+ g_object_add_weak_pointer (G_OBJECT (display_window),
+ (gpointer) &display_window);
g_signal_connect (G_OBJECT (display_window), "destroy",
G_CALLBACK (gtk_main_quit), NULL);