Squash strict aliasing warnings.

Tue Nov 16 19:26:30 2004  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display):
        Squash strict aliasing warnings.
This commit is contained in:
Owen Taylor
2004-11-17 00:55:10 +00:00
committed by Owen Taylor
parent c2669dd5bb
commit f266788e19
8 changed files with 80 additions and 22 deletions

View File

@ -160,11 +160,15 @@ gdk_wcstombs (const GdkWChar *src)
}
else
{
if (XwcTextListToTextProperty (xdisplay, (wchar_t**)&src, 1,
wchar_t *tmp;
if (XwcTextListToTextProperty (xdisplay, &tmp, 1,
XTextStyle, &tpr) != Success)
{
return NULL;
}
src = (GdkWChar *)tmp;
}
/*
* We must copy the string into an area allocated by glib, because