[PATCH libdrm] xf86drm: Fix type-punned pointer build warning

Emil Velikov emil.l.velikov at gmail.com
Mon Jan 16 14:42:07 UTC 2017


On 12 January 2017 at 21:48, Thierry Reding <thierry.reding at gmail.com> wrote:
> From: Thierry Reding <treding at nvidia.com>
>
>       CC       libdrm_la-xf86drmMode.lo
>     ../xf86drmMode.c: In function 'drmHandleEvent':
>     ../xf86drmMode.c:854:15: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
>        e = (struct drm_event *)(&buffer[i]);
>                    ^
>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99350
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

-Emil


More information about the dri-devel mailing list