summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2022-08-08 21:03:57 +0000
committerSimon McVittie <smcv@collabora.com>2022-08-10 11:18:20 +0000
commit7ca69a978503345394117cfc0e03058765780958 (patch)
tree1143f7bf4e9072c337161c850f99b57c78674eae
parentaec2ad7efbb2bae20808878790462b92d1f87d4d (diff)
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`.
-rw-r--r--tools/dbus-launch-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dbus-launch-x11.c b/tools/dbus-launch-x11.c
index 48ab51d8..59694c31 100644
--- a/tools/dbus-launch-x11.c
+++ b/tools/dbus-launch-x11.c
@@ -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);
}