mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 02:30:12 +01:00
exynos: fix type-punned pointer build warning
As like the commit ecc2a09729 ("xf86drm: Fix type-punned pointer
build warning"), this fixes following build warning.
exynos_drm.c: In function 'exynos_handle_event':
exynos_drm.c:420:15: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
e = (struct drm_event *) &buffer[i];
^
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Reviewed-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
f5995751b0
commit
c9ef5c4a1c
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ exynos_handle_event(struct exynos_device *dev, struct exynos_event_context *ctx)
|
|||
|
||||
i = 0;
|
||||
while (i < len) {
|
||||
e = (struct drm_event *) &buffer[i];
|
||||
e = (struct drm_event *)(buffer + i);
|
||||
switch (e->type) {
|
||||
case DRM_EVENT_VBLANK:
|
||||
if (evctx->version < 1 ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue