dbus-launch-x11.c: Silence clang -Wcast-align warning

In this case the cast is safe since the manual guarantees that the
underlying storage is an array of `long`.
This commit is contained in:
Alex Richardson 2022-08-08 21:03:57 +00:00 committed by Simon McVittie
parent aec2ad7efb
commit 7ca69a9785

View file

@ -335,7 +335,7 @@ x11_get_address (char **paddress, pid_t *pid, long *wid)
XA_CARDINAL, &type, &format, &items, &after,
(unsigned char **) &data);
if (result == Success && type != None && after == 0 && data != NULL && format == 32)
*pid = (pid_t) *(long*) data;
*pid = (pid_t) *(long*) (void*) data;
XFree (data);
}