From: Alex Richardson Date: Mon, 8 Aug 2022 21:03:57 +0000 (+0000) Subject: dbus-launch-x11.c: Silence clang -Wcast-align warning X-Git-Tag: dbus-1.15.0~14^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ca69a978503345394117cfc0e03058765780958;p=thirdparty%2Fdbus.git 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`. --- diff --git a/tools/dbus-launch-x11.c b/tools/dbus-launch-x11.c index 48ab51d89..59694c319 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); }