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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user