From 13142f4a4ca43837b359d0ee57f9c7f7e4cefa3b Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Tue, 3 Apr 2007 12:31:13 -0500 Subject: [PATCH] Avoid strict aliasing warnings here --- moo/mooutils/mooutils-misc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/moo/mooutils/mooutils-misc.c b/moo/mooutils/mooutils-misc.c index dfcfa44d..dd5392bd 100644 --- a/moo/mooutils/mooutils-misc.c +++ b/moo/mooutils/mooutils-misc.c @@ -281,6 +281,7 @@ is_minimized (Display *display, XID w) gulong nitems_return; gulong bytes_after_return; Atom *data; + guchar *cdata; int ret; gulong i; @@ -302,7 +303,8 @@ is_minimized (Display *display, XID w) &actual_format_return, &nitems_return, &bytes_after_return, - (guchar**) &data); + &cdata); + data = (Atom*) cdata; if (gdk_error_trap_pop () || ret != Success) { @@ -360,6 +362,7 @@ _moo_get_top_window (GSList *windows) gulong nitems_return; gulong bytes_after_return; XID *data; + guchar *cdata; int ret; long i; GSList *l; @@ -408,7 +411,8 @@ _moo_get_top_window (GSList *windows) &actual_format_return, &nitems_return, &bytes_after_return, - (guchar**) &data); + &cdata); + data = (XID*) cdata; if (gdk_error_trap_pop () || ret != Success) {