mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-21 15:50:43 +02:00
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:
parent
aec2ad7efb
commit
7ca69a9785
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue